summaryrefslogtreecommitdiff
path: root/src/modules/m_channames.cpp
diff options
context:
space:
mode:
authorDaniel Vassdal <shutter@canternet.org>2013-12-20 19:10:48 -0800
committerAttila Molnar <attilamolnar@hush.com>2013-12-21 15:20:17 +0100
commit928c5e6bed419adb1aa489c91857c4eca42ccdcc (patch)
tree1db94d208c171b4dd346996c94927762b51f920b /src/modules/m_channames.cpp
parent24fc55bbfd367bf2ef68230173ffe1cb58f744fa (diff)
Allow ranges beginning with 0 in m_channames
Diffstat (limited to 'src/modules/m_channames.cpp')
-rw-r--r--src/modules/m_channames.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_channames.cpp b/src/modules/m_channames.cpp
index b5f5853e7..325e8fee1 100644
--- a/src/modules/m_channames.cpp
+++ b/src/modules/m_channames.cpp
@@ -109,6 +109,12 @@ class ModuleChannelNames : public Module
ConfigTag* tag = ServerInstance->Config->ConfValue("channames");
std::string denyToken = tag->getString("denyrange");
std::string allowToken = tag->getString("allowrange");
+
+ if (!denyToken.compare(0, 2, "0-"))
+ denyToken[0] = '1';
+ if (!allowToken.compare(0, 2, "0-"))
+ allowToken[0] = '1';
+
allowedmap.set();
irc::portparser denyrange(denyToken, false);