Changed list command to use cb.name() instead of cb.__class__.__name__.

This commit is contained in:
Jeremy Fincher 2003-04-19 21:41:23 +00:00
parent 43ae9188b5
commit e4591e3d57

View File

@ -52,8 +52,7 @@ class MiscCommands(callbacks.Privmsg):
name = privmsgs.getArgs(args, needed=0, optional=1)
name = name.lower()
if not name:
names = [cb.__class__.__name__
for cb in irc.callbacks
names = [cb.name() for cb in irc.callbacks
if hasattr(cb, 'public') and cb.public]
names.sort()
irc.reply(msg, ', '.join(names))