mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Changed list command to use cb.name() instead of cb.__class__.__name__.
This commit is contained in:
parent
43ae9188b5
commit
e4591e3d57
@ -52,8 +52,7 @@ class MiscCommands(callbacks.Privmsg):
|
|||||||
name = privmsgs.getArgs(args, needed=0, optional=1)
|
name = privmsgs.getArgs(args, needed=0, optional=1)
|
||||||
name = name.lower()
|
name = name.lower()
|
||||||
if not name:
|
if not name:
|
||||||
names = [cb.__class__.__name__
|
names = [cb.name() for cb in irc.callbacks
|
||||||
for cb in irc.callbacks
|
|
||||||
if hasattr(cb, 'public') and cb.public]
|
if hasattr(cb, 'public') and cb.public]
|
||||||
names.sort()
|
names.sort()
|
||||||
irc.reply(msg, ', '.join(names))
|
irc.reply(msg, ', '.join(names))
|
||||||
|
Loading…
Reference in New Issue
Block a user