diff options
Diffstat (limited to 'src/modules/m_hidechans.cpp')
-rw-r--r-- | src/modules/m_hidechans.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_hidechans.cpp b/src/modules/m_hidechans.cpp index 2adf30d85..9548e1ec3 100644 --- a/src/modules/m_hidechans.cpp +++ b/src/modules/m_hidechans.cpp @@ -59,7 +59,7 @@ class ModuleHideChans : public Module { hm = new HideChans(ServerInstance); - if (!ServerInstance->AddMode(hm)) + if (!ServerInstance->Modes->AddMode(hm)) throw ModuleException("Could not add new modes!"); Implementation eventlist[] = { I_OnWhoisLine }; ServerInstance->Modules->Attach(eventlist, this, 1); |