diff options
author | Daniel Vassdal <shutter@canternet.org> | 2013-12-20 19:10:48 -0800 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-12-21 15:20:17 +0100 |
commit | 928c5e6bed419adb1aa489c91857c4eca42ccdcc (patch) | |
tree | 1db94d208c171b4dd346996c94927762b51f920b /src/modules/m_channames.cpp | |
parent | 24fc55bbfd367bf2ef68230173ffe1cb58f744fa (diff) |
Allow ranges beginning with 0 in m_channames
Diffstat (limited to 'src/modules/m_channames.cpp')
-rw-r--r-- | src/modules/m_channames.cpp | 6 |
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); |