aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_connectban.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-04-14 15:43:03 +0100
committerGravatar Peter Powell2018-04-16 15:29:55 +0100
commit780dda83ba3857bc3c330d4b5d38bb251a9d879b (patch)
tree75034915142a3e1362f0f9d59c8e96e1eec22931 /src/modules/m_connectban.cpp
parentConvert ConfigTag::getDuration to return an unsigned long. (diff)
Add ConfigTag::getUInt for reading unsigned config values.
Diffstat (limited to 'src/modules/m_connectban.cpp')
-rw-r--r--src/modules/m_connectban.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_connectban.cpp b/src/modules/m_connectban.cpp
index 58b3bfeda..906724249 100644
--- a/src/modules/m_connectban.cpp
+++ b/src/modules/m_connectban.cpp
@@ -40,9 +40,9 @@ class ModuleConnectBan : public Module
{
ConfigTag* tag = ServerInstance->Config->ConfValue("connectban");
- ipv4_cidr = tag->getInt("ipv4cidr", 32, 1, 32);
- ipv6_cidr = tag->getInt("ipv6cidr", 128, 1, 128);
- threshold = tag->getInt("threshold", 10, 1);
+ ipv4_cidr = tag->getUInt("ipv4cidr", 32, 1, 32);
+ ipv6_cidr = tag->getUInt("ipv6cidr", 128, 1, 128);
+ threshold = tag->getUInt("threshold", 10, 1);
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.");
}