mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 17:09:27 +01:00
Config: Add : prefix to network-specific values listed by 'config list'.
This commit is contained in:
parent
322923c957
commit
813f688858
@ -159,7 +159,9 @@ class Config(callbacks.Plugin):
|
|||||||
irc.isChannel(vname):
|
irc.isChannel(vname):
|
||||||
# Skip pseudo-children that are channel names
|
# Skip pseudo-children that are channel names
|
||||||
continue
|
continue
|
||||||
if hasattr(v, '_channelValue') and v._channelValue:
|
if getattr(v, '_networkValue', False):
|
||||||
|
vname = ':' + vname
|
||||||
|
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, v._added):
|
||||||
vname = '@' + vname
|
vname = '@' + vname
|
||||||
|
@ -53,7 +53,7 @@ class ConfigTestCase(ChannelPluginTestCase):
|
|||||||
self.assertError('config list asldfkj')
|
self.assertError('config list asldfkj')
|
||||||
self.assertError('config list supybot.asdfkjsldf')
|
self.assertError('config list supybot.asdfkjsldf')
|
||||||
self.assertNotError('config list supybot')
|
self.assertNotError('config list supybot')
|
||||||
self.assertNotError('config list supybot.replies')
|
self.assertRegexp('config list supybot.replies', ', #:errorOwner, ')
|
||||||
self.assertRegexp('config list supybot', r'@plugins.*@replies.*@reply')
|
self.assertRegexp('config list supybot', r'@plugins.*@replies.*@reply')
|
||||||
|
|
||||||
def testListExcludes(self):
|
def testListExcludes(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user