mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fixed bug #1009683.
This commit is contained in:
parent
d267fe9fbf
commit
4e53cfef63
@ -142,6 +142,8 @@ class Config(callbacks.Privmsg):
|
|||||||
L = []
|
L = []
|
||||||
for (name, _) in conf.supybot.getValues(getChildren=True):
|
for (name, _) in conf.supybot.getValues(getChildren=True):
|
||||||
if word in name.lower():
|
if word in name.lower():
|
||||||
|
possibleChannel = registry.split(name)[-1]
|
||||||
|
if not ircutils.isChannel(possibleChannel):
|
||||||
L.append(name)
|
L.append(name)
|
||||||
if L:
|
if L:
|
||||||
irc.reply(utils.commaAndify(L))
|
irc.reply(utils.commaAndify(L))
|
||||||
|
@ -60,6 +60,11 @@ class ConfigTestCase(ChannelPluginTestCase):
|
|||||||
'supybot.commands.defaultPlugins.help',
|
'supybot.commands.defaultPlugins.help',
|
||||||
'AssertionError')
|
'AssertionError')
|
||||||
|
|
||||||
|
def testSearch(self):
|
||||||
|
self.assertNotError('config search prefixChars')
|
||||||
|
self.assertNotError('config channel prefixChars @')
|
||||||
|
self.assertNotRegexp('config search prefixChars', self.channel)
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user