X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_channames.cpp;h=325e8fee11735c46f24f6790d82a9f7a8f233f21;hb=402a1bb010522a35600325c1a3084e092b40ca22;hp=b5f5853e739bfc0acfbf7af0bf9c54d9cf6af254;hpb=ecf7690813b936a1751281f4b4a5199aa1db02c8;p=user%2Fhenk%2Fcode%2Finspircd.git 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);