mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-24 11:04:05 +01:00
Config: Don't prepend @ to config value names if their only children are networks.
This commit is contained in:
parent
bdbb74f046
commit
864315cc5f
@ -37,7 +37,6 @@ import supybot.utils as utils
|
|||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
import supybot.ircdb as ircdb
|
import supybot.ircdb as ircdb
|
||||||
from supybot.commands import *
|
from supybot.commands import *
|
||||||
from supybot.utils.iter import all
|
|
||||||
import supybot.ircutils as ircutils
|
import supybot.ircutils as ircutils
|
||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
import supybot.callbacks as callbacks
|
import supybot.callbacks as callbacks
|
||||||
@ -172,7 +171,9 @@ class Config(callbacks.Plugin):
|
|||||||
vname = ':' + vname
|
vname = ':' + vname
|
||||||
if getattr(v, '_channelValue', False):
|
if getattr(v, '_channelValue', False):
|
||||||
vname = '#' + vname
|
vname = '#' + vname
|
||||||
if v._added and not all(irc.isChannel, v._added):
|
if v._added and not all(
|
||||||
|
irc.isChannel(child) or child.startswith(':')
|
||||||
|
for child in v._added):
|
||||||
vname = '@' + vname
|
vname = '@' + vname
|
||||||
L.append(vname)
|
L.append(vname)
|
||||||
utils.sortBy(str.lower, L)
|
utils.sortBy(str.lower, L)
|
||||||
|
Loading…
Reference in New Issue
Block a user