mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
9e3c44ef20
commit
4cff9c460e
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user