diff options
Diffstat (limited to 'src/modules/m_permchannels.cpp')
-rw-r--r-- | src/modules/m_permchannels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 361e28411..357db554f 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -54,7 +54,7 @@ public: ModulePermanentChannels(InspIRCd* Me) : Module(Me) { p = new PermChannel(ServerInstance); - if (!ServerInstance->AddMode(p)) + if (!ServerInstance->Modes->AddMode(p)) { delete p; throw ModuleException("Could not add new modes!"); |