mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fix0red the groupz0rs.
This commit is contained in:
parent
a4aff250cc
commit
952aa0e395
@ -108,21 +108,21 @@ class Config(callbacks.Privmsg):
|
||||
name = self._canonicalizeName(name)
|
||||
group = getWrapper(name)
|
||||
if groups:
|
||||
L = group.children.keys()
|
||||
L = []
|
||||
for (vname, v) in group.children.iteritems():
|
||||
if v.added:
|
||||
L.append(vname)
|
||||
if L:
|
||||
utils.sortBy(str.lower, L)
|
||||
irc.reply(utils.commaAndify(L))
|
||||
else:
|
||||
irc.reply('%s has no subgroups.' % name)
|
||||
else:
|
||||
if hasattr(group, 'getValues'):
|
||||
try:
|
||||
L = zip(*group.getValues(fullNames=False))[0]
|
||||
irc.reply(utils.commaAndify(L))
|
||||
except TypeError:
|
||||
irc.error('There don\'t seem to be any values in %s'%name)
|
||||
else:
|
||||
irc.error('%r is not a valid configuration group.' % name)
|
||||
|
||||
def search(self, irc, msg, args):
|
||||
"""<word>
|
||||
|
Loading…
Reference in New Issue
Block a user