mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-20 07:30:54 +01:00
Handle the no plugins case.
This commit is contained in:
parent
29f54c833b
commit
a64d6b3881
10
src/Misc.py
10
src/Misc.py
@ -91,7 +91,13 @@ class Misc(callbacks.Privmsg):
|
|||||||
if (private and not isPublic(cb)) or
|
if (private and not isPublic(cb)) or
|
||||||
(not private and isPublic(cb))]
|
(not private and isPublic(cb))]
|
||||||
names.sort()
|
names.sort()
|
||||||
irc.reply(utils.commaAndify(names))
|
if names:
|
||||||
|
irc.reply(utils.commaAndify(names))
|
||||||
|
else:
|
||||||
|
if private:
|
||||||
|
irc.reply('There are no private plugins.')
|
||||||
|
else:
|
||||||
|
irc.reply('There are no public plugins.')
|
||||||
else:
|
else:
|
||||||
cb = irc.getCallback(name)
|
cb = irc.getCallback(name)
|
||||||
if cb is None:
|
if cb is None:
|
||||||
@ -116,7 +122,7 @@ class Misc(callbacks.Privmsg):
|
|||||||
irc.reply(utils.commaAndify(commands))
|
irc.reply(utils.commaAndify(commands))
|
||||||
else:
|
else:
|
||||||
irc.error('That plugin exists, but it has no '
|
irc.error('That plugin exists, but it has no '
|
||||||
'commands with help.')
|
'commands with help.')
|
||||||
|
|
||||||
def apropos(self, irc, msg, args):
|
def apropos(self, irc, msg, args):
|
||||||
"""<string>
|
"""<string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user