This commit is contained in:
Jeremy Fincher 2004-08-16 18:44:38 +00:00
parent d267fe9fbf
commit 4e53cfef63
2 changed files with 8 additions and 1 deletions

View File

@ -142,7 +142,9 @@ 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():
L.append(name) possibleChannel = registry.split(name)[-1]
if not ircutils.isChannel(possibleChannel):
L.append(name)
if L: if L:
irc.reply(utils.commaAndify(L)) irc.reply(utils.commaAndify(L))
else: else:

View File

@ -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: