]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hideoper.cpp
Commit patch from danieldg that makes a ton of stuff const-safe for latest warn-happy...
[user/henk/code/inspircd.git] / src / modules / m_hideoper.cpp
index a2ef1fe42e6fc3d4267635a6b90b25aed607d432..024af222145d486f1de1e74c23e0163f7550ece5 100644 (file)
@@ -58,7 +58,7 @@ class ModuleHideOper : public Module
        {
                
                hm = new HideOper(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);