mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-22 18:52:45 +01:00
commaAndify list
This commit is contained in:
parent
b668da98aa
commit
66f12fa1a6
@ -81,7 +81,7 @@ class Misc(callbacks.Privmsg):
|
|||||||
names = [cb.name() for cb in irc.callbacks
|
names = [cb.name() for cb in irc.callbacks
|
||||||
if evenPrivate or (hasattr(cb, 'public') and cb.public)]
|
if evenPrivate or (hasattr(cb, 'public') and cb.public)]
|
||||||
names.sort()
|
names.sort()
|
||||||
irc.reply(', '.join(names))
|
irc.reply(utils.commaAndify(names))
|
||||||
else:
|
else:
|
||||||
cb = irc.getCallback(name)
|
cb = irc.getCallback(name)
|
||||||
if cb is None:
|
if cb is None:
|
||||||
@ -100,7 +100,7 @@ class Misc(callbacks.Privmsg):
|
|||||||
commands.append(s)
|
commands.append(s)
|
||||||
if commands:
|
if commands:
|
||||||
commands.sort()
|
commands.sort()
|
||||||
irc.reply(', '.join(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.')
|
||||||
|
Loading…
Reference in New Issue
Block a user