Improved the reply given when a plugin with no commands is 'list'ed.

This commit is contained in:
Jeremy Fincher 2005-03-26 17:52:40 +00:00
parent 1dd6dc5b9e
commit 47a1912030

View File

@ -132,8 +132,12 @@ class Misc(callbacks.Plugin):
commands.sort() commands.sort()
irc.reply(format('%L', commands)) irc.reply(format('%L', commands))
else: else:
irc.error('That plugin exists, but it has no ' irc.reply(format('That plugin exists, but has no commands. '
'commands with help.') 'This probably means that it has some '
'configuration variables that can be '
'changed in order to modify its behavior. '
'Try "config list %s" to see what '
'configuration variables it has.', cb.name()))
list = wrap(list, [getopts({'private':''}), additional('plugin')]) list = wrap(list, [getopts({'private':''}), additional('plugin')])
def apropos(self, irc, msg, args, s): def apropos(self, irc, msg, args, s):