diff --git a/src/Config.py b/src/Config.py index a1e6dfcc1..d957bbd1e 100644 --- a/src/Config.py +++ b/src/Config.py @@ -118,6 +118,22 @@ class Config(callbacks.Privmsg): else: irc.error('%r is not a valid configuration group.' % name) + def search(self, irc, msg, args): + """ + + Searches for in the current configuration variables. + """ + word = privmsgs.getArgs(args) + word = word.lower() + L = [] + for (name, _) in conf.supybot.getValues(getChildren=True): + if word in name.lower(): + L.append(name) + if L: + irc.reply(utils.commaAndify(L)) + else: + irc.reply('There were no matching configuration variables.') + def config(self, irc, msg, args): """ []