mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
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:
parent
bbf858791d
commit
44d74dbfa6
@ -56,13 +56,13 @@ class Networks(registry.SpaceSeparatedListOf):
|
||||
|
||||
Relay = conf.registerPlugin('Relay')
|
||||
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.""")))
|
||||
conf.registerChannelValue(Relay, 'topicSync',
|
||||
registry.Boolean(True, _("""Determines whether the bot will synchronize
|
||||
topics between networks in the channels it relays.""")))
|
||||
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
|
||||
or parts.""")))
|
||||
conf.registerChannelValue(Relay, 'includeNetwork',
|
||||
@ -70,20 +70,20 @@ conf.registerChannelValue(Relay, 'includeNetwork',
|
||||
network in relayed PRIVMSGs; if you're only relaying between two networks,
|
||||
it's somewhat redundant, and you may wish to save the space.""")))
|
||||
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.""")))
|
||||
conf.registerGlobalValue(Relay, 'channels',
|
||||
conf.SpaceSeparatedSetOfChannels([], _("""Determines which channels the bot
|
||||
will relay in.""")))
|
||||
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
|
||||
connected to.""")))
|
||||
conf.registerChannelValue(Relay, 'ignores',
|
||||
Ignores([], _("""Determines what hostmasks will not be relayed on a
|
||||
channel.""")))
|
||||
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,
|
||||
nicks, quits, modes, etc.)""")))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user