Handle the no plugins case.

This commit is contained in:
Jeremy Fincher 2004-08-05 03:57:48 +00:00
parent 29f54c833b
commit a64d6b3881

View File

@ -91,7 +91,13 @@ class Misc(callbacks.Privmsg):
if (private and not isPublic(cb)) or
(not private and isPublic(cb))]
names.sort()
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:
cb = irc.getCallback(name)
if cb is None: