fixbot/irc.py
changeset 58 31a17b0b5159
parent 44 779d7cd38f1a
child 64 8574aeff9b36
equal deleted inserted replaced
57:31e7421e98af 58:31a17b0b5159
   110             return method.__doc__
   110             return method.__doc__
   111         else :
   111         else :
   112             try :
   112             try :
   113                 module, addr = self.nexus.getModuleInfo(cmd)
   113                 module, addr = self.nexus.getModuleInfo(cmd)
   114 
   114 
   115                 return "%s from %s. Events: %s. See `commands %s' for a list of commands" % (module.name, addr, ', '.join(module.event_types), module.name)
   115                 return "%s from %s. See `commands %s' for a list of commands" % (module.name, addr, module.name)
   116 
   116 
   117             except KeyError :
   117             except KeyError :
   118                 raise ReplyException("No command/module called `%s'. See `help commands'" % cmd)
   118                 raise ReplyException("No command/module called `%s'. See `help commands'" % cmd)
   119 
   119 
   120     def cmd_commands (self, module=None) :
   120     def cmd_commands (self, module=None) :