X-Git-Url: https://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=sid%2Fsid.py;h=5b85fd15211315113fc83a3907938ba74d623e70;hp=534c3a0cce58b02b1ce308681b406f4da3375e8d;hb=1dd932993b7357e90415198689cf3b6e2c6c29a2;hpb=93e5ba3ee0cb4ed8dda40e3dd45a9711d4a9decf diff --git a/sid/sid.py b/sid/sid.py index 534c3a0..5b85fd1 100644 --- a/sid/sid.py +++ b/sid/sid.py @@ -193,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':