]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hidechans.cpp
Add comments
[user/henk/code/inspircd.git] / src / modules / m_hidechans.cpp
index 2adf30d85ad634c063f691c30d2a732dd7c6265c..9548e1ec3ccacae58fa2823325ccc2f976e41ac6 100644 (file)
@@ -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);