From 6c88a6a31575b415ecab6262dbc9e3ec174e3f2c Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 13 Feb 2004 11:02:42 +0000 Subject: [PATCH] Better error message in the cases where there are no commands. --- src/Misc.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Misc.py b/src/Misc.py index 4851dbc57..ac49b0935 100755 --- a/src/Misc.py +++ b/src/Misc.py @@ -88,7 +88,10 @@ class Misc(callbacks.Privmsg): irc.error('No such plugin %r exists.' % name) elif isinstance(cb, callbacks.PrivmsgRegexp) or \ not isinstance(cb, callbacks.Privmsg): - irc.error('That plugin exists, but it has no commands.') + irc.error('That plugin exists, but it has no commands. ' + 'You may wish to check if it has any useful ' + 'configuration variables with the command ' + '"config list supybot.plugins.%s".' % name) else: commands = [] for s in dir(cb): @@ -171,8 +174,8 @@ class Misc(callbacks.Privmsg): names = [cb.name() for cb in cbs] names.sort() irc.error('That command exists in the %s plugins. ' - 'Please specify exactly which plugin command ' - 'you want help with.'% utils.commaAndify(names)) + 'Please specify exactly which plugin command ' + 'you want help with.'% utils.commaAndify(names)) return else: assert len(tokens) == 2