~jerith/kali/nick-change-fix

« back to all changes in this revision

Viewing changes to shs/controller.py

  • Committer: Jonathan Jacobs
  • Date: 2008-09-15 11:48:47 UTC
  • Revision ID: korpse@slipgate.za.net-20080915114847-otks46opyfkl5ash
Fix stupid broken command name deriving code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 
74
74
        self.method = method
75
75
        self.params = []
76
 
        self.name = method.__name__.strip('cmd_')
 
76
        self.name = method.__name__[len('cmd_'):]
77
77
        self.usage = usage
78
78
        self.shortHelp = lines[0]
79
79
        self.help = '\n'.join(lines)