From d451233ec74b6f7c7068ea0b980747ce12c5ae41 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 7 Feb 2004 23:39:04 +0000 Subject: [PATCH] Oops, forgot this was a set, not a list. --- plugins/Relay.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/Relay.py b/plugins/Relay.py index 5a90da3ea..661c86ab2 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -116,8 +116,16 @@ conf.registerChannelValue(conf.supybot.plugins.Relay, 'color', conf.registerChannelValue(conf.supybot.plugins.Relay, 'topicSync', registry.Boolean(True, """Determines whether the bot will synchronize topics between networks in the channels it relays.""")) + +class SpaceSeparatedSetOfChannels(registry.SeparatedListOf): + List = ircutils.IrcSet + Value = conf.ValidChannel + def splitter(self, s): + return s.split() + joiner = ' '.join + conf.registerGlobalValue(conf.supybot.plugins.Relay, 'channels', - conf.SpaceSeparatedListOfChannels([], """Determines which channels the bot + SpaceSeparatedSetOfChannels([], """Determines which channels the bot will relay in.""")) class Relay(callbacks.Privmsg):