Fixed list bug.

This commit is contained in:
Jeremy Fincher 2004-07-29 07:37:27 +00:00
parent 0f5920571e
commit 9bfb616623

View File

@ -106,7 +106,7 @@ class Config(callbacks.Privmsg):
return L return L
else: else:
try: try:
L = zip(*group.getValues(fullNames=False))[0] L = [t[0] for t in group.getValues(fullNames=False)]
utils.sortBy(str.lower, L) utils.sortBy(str.lower, L)
return L return L
except TypeError: except TypeError:
@ -125,7 +125,7 @@ class Config(callbacks.Privmsg):
if name == '--groups': if name == '--groups':
groups = True groups = True
name = privmsgs.getArgs(rest) name = privmsgs.getArgs(rest)
L = self._list(name, groups) L = self._list(name, groups=groups)
if L: if L:
irc.reply(utils.commaAndify(L)) irc.reply(utils.commaAndify(L))
elif groups: elif groups: