mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +01:00
relay: make endburst delay configurable
Also, raise the default to 10 seconds.
This commit is contained in:
parent
ea84497359
commit
3f7e2328fe
@ -33,3 +33,4 @@ To disable relaying for any specific event, set the template string to an empty
|
||||
### Misc. options
|
||||
- `relay:clientbot_startup_delay`: Defines the amount of seconds Clientbot should wait after startup, before relaying any non-PRIVMSG events. This is used to prevent excess floods when the bot connects. Defaults to 5 seconds.
|
||||
- `servers:NETNAME:relay_force_slashes`: This network specific option forces Relay to use `/` in nickname separators. You should only use this option on TS6 or P10 variants that are less strict with nickname validation, as **it will cause protocol violations** on most IRCds. UnrealIRCd and InspIRCd users do not need to set this either, as `/` in nicks is automatically enabled.
|
||||
- `servers:NETNAME:relay_endburst_delay`: InspIRCd networks only: sets the endburst delay for relay subservers. If relay server bursts are causing +j (join flood) protection to trigger, raising this value can work around the issue.
|
||||
|
@ -230,7 +230,7 @@ def spawn_relay_server(irc, remoteirc):
|
||||
needs_delayed_eob = hasattr(irc, '_endburst_delay')
|
||||
if needs_delayed_eob:
|
||||
old_eob_delay = irc._endburst_delay
|
||||
irc._endburst_delay = 3
|
||||
irc._endburst_delay = irc.serverdata.get('relay_endburst_delay', 10)
|
||||
|
||||
sid = irc.spawn_server('%s.%s' % (remoteirc.name, suffix),
|
||||
desc="PyLink Relay network - %s" %
|
||||
|
Loading…
Reference in New Issue
Block a user