Skip to content

Commit

Permalink
Message on none arg
Browse files Browse the repository at this point in the history
  • Loading branch information
aluminiumgeek committed Mar 21, 2016
1 parent 15f5878 commit 891c7ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/user_man.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

def main(bot, module):
def main(bot, module=None):
"""
man <module>
Show manual page for a module
Expand All @@ -9,6 +9,8 @@ def main(bot, module):
result = bot.commands['user'][module].__doc__
elif module in bot.commands['owner']:
result = bot.commands['owner'][module].__doc__
elif module is None:
return 'What manual page do you want?'
else:
return 'No such command'

Expand Down

0 comments on commit 891c7ec

Please sign in to comment.