Relay: make default config better.

Enable colours: most of people want them and they are supported by
all IRC clients used nowadays.

Show hostmask: that is standard behaviour of relaybots which I am seeing.

Punish other relaybots: Does this even need explaining? "Let 2009-11-24 <http://echelog.com/logs/browse/supybot/1259017200> be a lesson to you: turn *on* supybot.plugins.Relay.punishOtherRelayBots."

Don't join on all networks: I think that people mostly want to relay
specific networks, not all of them. This is also a method to evade
limitation of LinkRelay ( ProgVal/Supybot-plugins#11 ).

Use notices with nonprivmsgs: This is also standard behaviour and makes
it easier to see the difference between PRIVMSGs and everything else.
This commit is contained in:
Mikaela Suomalainen 2014-05-11 16:41:06 +03:00
parent bbf858791d
commit 44d74dbfa6
1 changed files with 5 additions and 5 deletions

View File

@ -56,13 +56,13 @@ class Networks(registry.SpaceSeparatedListOf):
Relay = conf.registerPlugin('Relay') Relay = conf.registerPlugin('Relay')
conf.registerChannelValue(Relay, 'color', conf.registerChannelValue(Relay, 'color',
registry.Boolean(False, _("""Determines whether the bot will color relayed registry.Boolean(True, _("""Determines whether the bot will color relayed
PRIVMSGs so as to make the messages easier to read."""))) PRIVMSGs so as to make the messages easier to read.""")))
conf.registerChannelValue(Relay, 'topicSync', conf.registerChannelValue(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.""")))
conf.registerChannelValue(Relay, 'hostmasks', conf.registerChannelValue(Relay, 'hostmasks',
registry.Boolean(False, _("""Determines whether the bot will relay the registry.Boolean(True, _("""Determines whether the bot will relay the
hostmask of the person joining or parting the channel when he or she joins hostmask of the person joining or parting the channel when he or she joins
or parts."""))) or parts.""")))
conf.registerChannelValue(Relay, 'includeNetwork', conf.registerChannelValue(Relay, 'includeNetwork',
@ -70,20 +70,20 @@ conf.registerChannelValue(Relay, 'includeNetwork',
network in relayed PRIVMSGs; if you're only relaying between two networks, network in relayed PRIVMSGs; if you're only relaying between two networks,
it's somewhat redundant, and you may wish to save the space."""))) it's somewhat redundant, and you may wish to save the space.""")))
conf.registerChannelValue(Relay, 'punishOtherRelayBots', conf.registerChannelValue(Relay, 'punishOtherRelayBots',
registry.Boolean(False, _("""Determines whether the bot will detect other registry.Boolean(True, _("""Determines whether the bot will detect other
bots relaying and respond by kickbanning them."""))) bots relaying and respond by kickbanning them.""")))
conf.registerGlobalValue(Relay, 'channels', conf.registerGlobalValue(Relay, 'channels',
conf.SpaceSeparatedSetOfChannels([], _("""Determines which channels the bot conf.SpaceSeparatedSetOfChannels([], _("""Determines which channels the bot
will relay in."""))) will relay in.""")))
conf.registerChannelValue(Relay.channels, 'joinOnAllNetworks', conf.registerChannelValue(Relay.channels, 'joinOnAllNetworks',
registry.Boolean(True, _("""Determines whether the bot registry.Boolean(False, _("""Determines whether the bot
will always join the channel(s) it relays for on all networks the bot is will always join the channel(s) it relays for on all networks the bot is
connected to."""))) connected to.""")))
conf.registerChannelValue(Relay, 'ignores', conf.registerChannelValue(Relay, 'ignores',
Ignores([], _("""Determines what hostmasks will not be relayed on a Ignores([], _("""Determines what hostmasks will not be relayed on a
channel."""))) channel.""")))
conf.registerChannelValue(Relay, 'noticeNonPrivmsgs', conf.registerChannelValue(Relay, 'noticeNonPrivmsgs',
registry.Boolean(False, _("""Determines whether the bot will used NOTICEs registry.Boolean(True, _("""Determines whether the bot will used NOTICEs
rather than PRIVMSGs for non-PRIVMSG relay messages (i.e., joins, parts, rather than PRIVMSGs for non-PRIVMSG relay messages (i.e., joins, parts,
nicks, quits, modes, etc.)"""))) nicks, quits, modes, etc.)""")))