From 4cff9c460efee97a8f44db4a794b6b71c8fdd496 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 11 Mar 2022 11:53:25 +0000 Subject: Only set the chanlog channel name handler after reading the config. Fixes IsChannel returning false for a valid channel name because the bitset is empty on server boot. --- src/modules/m_channames.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_channames.cpp b/src/modules/m_channames.cpp index c5315b307..5af8a433b 100644 --- a/src/modules/m_channames.cpp +++ b/src/modules/m_channames.cpp @@ -61,11 +61,6 @@ class ModuleChannelNames : public Module { } - void init() CXX11_OVERRIDE - { - ServerInstance->IsChannel = NewIsChannelHandler::Call; - } - void ValidateChans() { Modes::ChangeList removepermchan; @@ -130,6 +125,7 @@ class ModuleChannelNames : public Module allowedmap[0x20] = false; // ' ' allowedmap[0x2C] = false; // ',' + ServerInstance->IsChannel = NewIsChannelHandler::Call; ValidateChans(); } -- cgit v1.3.1-10-gc9f91