diff --git a/tipbot/command_manager.py b/tipbot/command_manager.py index 673f830..0bf555b 100644 --- a/tipbot/command_manager.py +++ b/tipbot/command_manager.py @@ -67,6 +67,9 @@ def Commands(link,cmd): module_name = GetParam(cmd,1) if module_name: + if not module_name in modules: + link.send_private("%s is not a module, see module list with !commands" % module_name) + return link.send_private("Commands for %s's %s module:" % (config.tipbot_name,module_name)) else: link.send_private("Commands for %s (use !commands for help about the module's commands):" % config.tipbot_name)