aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-03-11 11:53:25 +0000
committerGravatar Sadie Powell2022-03-11 11:53:25 +0000
commit4cff9c460efee97a8f44db4a794b6b71c8fdd496 (patch)
tree106bbc38ae216a138e813b032348f8afab592986 /src
parentImprove chanlog config reading. (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_channames.cpp6
1 files changed, 1 insertions, 5 deletions
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();
}