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.
This commit is contained in:
Sadie Powell 2022-03-11 11:53:25 +00:00
parent 9e3c44ef20
commit 4cff9c460e

View File

@ -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();
}