mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Fixed bug #1059536.
This commit is contained in:
parent
a060f26aa8
commit
bea58663f0
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user