mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-03 21:10:40 +01:00
Oops, forgot this was a set, not a list.
This commit is contained in:
parent
f2f2680c91
commit
d451233ec7
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user