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
if evenPrivate or (hasattr(cb, 'public') and cb.public)]
names.sort()
irc.reply(', '.join(names))
irc.reply(utils.commaAndify(names))
else:
cb = irc.getCallback(name)
if cb is None:
@ -100,7 +100,7 @@ class Misc(callbacks.Privmsg):
commands.append(s)
if commands:
commands.sort()
irc.reply(', '.join(commands))
irc.reply(utils.commaAndify(commands))
else:
irc.error('That plugin exists, but it has no '
'commands with help.')