mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Rename <connectban:duration> to <connectban:banduration>.
This commit is contained in:
parent
8addeb78b7
commit
c87703e2a7
@ -693,8 +693,8 @@
|
||||
# banmessage - The message to give users when Z-lining them for connecting
|
||||
# too much.
|
||||
#
|
||||
# duration - The time period to ban users who connect to much for. Defaults
|
||||
# to 10 minutes.
|
||||
# banduration - The time period to ban users who connect to much for. Defaults
|
||||
# to 10 minutes.
|
||||
#
|
||||
# ipv4cidr - The IPv4 CIDR mask (1-32) to treat connecting users as coming
|
||||
# from the same host. Defaults to 32.
|
||||
@ -710,7 +710,7 @@
|
||||
#
|
||||
#<connectban threshold="10"
|
||||
# banmessage="Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect."
|
||||
# duration="10m"
|
||||
# banduration="10m"
|
||||
# ipv4cidr="32"
|
||||
# ipv6cidr="128"
|
||||
# bootwait="2m"
|
||||
|
@ -109,7 +109,7 @@ class ModuleConnectBan CXX11_FINAL
|
||||
threshold = tag->getUInt("threshold", 10, 1);
|
||||
bootwait = tag->getDuration("bootwait", 60*2);
|
||||
splitwait = tag->getDuration("splitwait", 60*2);
|
||||
banduration = tag->getDuration("duration", 10*60, 1);
|
||||
banduration = tag->getDuration("banduration", tag->getDuration("duration", 10*60), 1);
|
||||
banmessage = tag->getString("banmessage", "Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.");
|
||||
|
||||
if (status.initial)
|
||||
|
Loading…
x
Reference in New Issue
Block a user