aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_connectban.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-03-22 15:27:39 +0000
committerGravatar Sadie Powell2022-03-22 15:27:39 +0000
commitc87703e2a7805fd7566ba39b9dfdf6e836166e11 (patch)
tree47db155833fac73ed67831340f149ce12383e994 /src/modules/m_connectban.cpp
parentFix real name formatting bleeding into IRC messages. (diff)
Rename <connectban:duration> to <connectban:banduration>.
Diffstat (limited to 'src/modules/m_connectban.cpp')
-rw-r--r--src/modules/m_connectban.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_connectban.cpp b/src/modules/m_connectban.cpp
index d8741a141..55ac8886e 100644
--- a/src/modules/m_connectban.cpp
+++ b/src/modules/m_connectban.cpp
@@ -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)