X-Git-Url: https://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=sid%2Fsid.py;h=5b85fd15211315113fc83a3907938ba74d623e70;hp=0df5478de958e31dc1f268602b604196f8a828a1;hb=1dd932993b7357e90415198689cf3b6e2c6c29a2;hpb=685ca532c5f30b41da003878cbfca8183b4965b7 diff --git a/sid/sid.py b/sid/sid.py index 0df5478..5b85fd1 100644 --- a/sid/sid.py +++ b/sid/sid.py @@ -173,7 +173,8 @@ class MUCBot(slixmpp.ClientXMPP): Automatically assigned to the "help" command.""" help_cmd = ('Type {}help '.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':