Oops, forgot this was a set, not a list.

This commit is contained in:
Jeremy Fincher 2004-02-07 23:39:04 +00:00
parent f2f2680c91
commit d451233ec7

View File

@ -116,8 +116,16 @@ conf.registerChannelValue(conf.supybot.plugins.Relay, 'color',
conf.registerChannelValue(conf.supybot.plugins.Relay, 'topicSync', conf.registerChannelValue(conf.supybot.plugins.Relay, 'topicSync',
registry.Boolean(True, """Determines whether the bot will synchronize registry.Boolean(True, """Determines whether the bot will synchronize
topics between networks in the channels it relays.""")) 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.registerGlobalValue(conf.supybot.plugins.Relay, 'channels',
conf.SpaceSeparatedListOfChannels([], """Determines which channels the bot SpaceSeparatedSetOfChannels([], """Determines which channels the bot
will relay in.""")) will relay in."""))
class Relay(callbacks.Privmsg): class Relay(callbacks.Privmsg):