mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 09:29:24 +01:00
Improved the reply given when a plugin with no commands is 'list'ed.
This commit is contained in:
parent
1dd6dc5b9e
commit
47a1912030
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user