commaAndify list

This commit is contained in:
James Vega 2004-02-12 04:17:20 +00:00
parent b668da98aa
commit 66f12fa1a6

View File

@ -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.')