]> kaliko git repositories - sid.git/blobdiff - sid/sid.py
Fixed docstrings indentation
[sid.git] / sid / sid.py
index 534c3a0cce58b02b1ce308681b406f4da3375e8d..5b85fd15211315113fc83a3907938ba74d623e70 100644 (file)
@@ -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':