]> kaliko git repositories - sid.git/blobdiff - sid/sid.py
Fixed docstrings indentation
[sid.git] / sid / sid.py
index 0df5478de958e31dc1f268602b604196f8a828a1..5b85fd15211315113fc83a3907938ba74d623e70 100644 (file)
@@ -173,7 +173,8 @@ class MUCBot(slixmpp.ClientXMPP):
 
         Automatically assigned to the "help" command."""
         help_cmd = ('Type {}help <command name>'.format(self.prefix) +
-                    ' to get more info about that specific command.')
+                    ' to get more info about that specific command.\n\n'+
+                    'SRC: http://git.kaliko.me/sid.git')
         if not args:
             if self.__doc__:
                 description = self.__doc__.strip()
@@ -192,7 +193,8 @@ class MUCBot(slixmpp.ClientXMPP):
             text = '{}\n\n{}'.format(description, usage)
         else:
             if args[0] in self.commands.keys():
-                text = self.commands[args[0]].__doc__.strip() or 'undocumented'
+                text = self.commands[args[0]].__doc__ or 'undocumented'
+                text = inspect.cleandoc(text)
             else:
                 text = 'That command is not defined.'
         if message['type'] == 'groupchat':