From 928c5e6bed419adb1aa489c91857c4eca42ccdcc Mon Sep 17 00:00:00 2001 From: Daniel Vassdal Date: Fri, 20 Dec 2013 19:10:48 -0800 Subject: Allow ranges beginning with 0 in m_channames --- src/modules/m_channames.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v1.2.3