This commit is contained in:
Jeremy Fincher 2004-11-03 23:03:24 +00:00
parent a060f26aa8
commit bea58663f0

View File

@ -118,6 +118,9 @@ class Config(callbacks.Privmsg):
def _list(self, group): def _list(self, group):
L = [] L = []
for (vname, v) in group._children.iteritems(): for (vname, v) in group._children.iteritems():
if hasattr(group, 'channelValue') and group.channelValue and \
ircutils.isChannel(vname) and not v._children:
continue
if hasattr(v, 'channelValue') and v.channelValue: if hasattr(v, 'channelValue') and v.channelValue:
vname = '#' + vname vname = '#' + vname
if v._added and not all(ircutils.isChannel, v._added): if v._added and not all(ircutils.isChannel, v._added):
@ -139,7 +142,7 @@ class Config(callbacks.Privmsg):
if L: if L:
irc.reply(utils.commaAndify(L)) irc.reply(utils.commaAndify(L))
else: else:
irc.error('There don\'t seem to be any values in %s.' % name) irc.error('There don\'t seem to be any values in %s.' % group._name)
list = wrap(list, ['configVar']) list = wrap(list, ['configVar'])
def search(self, irc, msg, args, word): def search(self, irc, msg, args, word):