]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cloaking.cpp
Hosts vector not cleared on rehash, made rehashing for changes impossible
[user/henk/code/inspircd.git] / src / modules / m_cloaking.cpp
index d9f5be30212b861c8200416937b933a9a1839323..593f3227ff0109fd389a2bb72336b90b39d3d263 100644 (file)
@@ -67,7 +67,7 @@ class CloakUser : public ModeHandler
        {
        }
 
-       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)
+       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool)
        {
                if (source != dest)
                        return MODEACTION_DENY;
@@ -337,7 +337,7 @@ class ModuleCloaking : public Module
                }
 
                /* Register it with the core */
-               if (!ServerInstance->AddMode(cu))
+               if (!ServerInstance->Modes->AddMode(cu))
                {
                        delete cu;
                        throw ModuleException("Could not add new modes!");
@@ -360,7 +360,7 @@ class ModuleCloaking : public Module
        {
                // returns the version number of the module to be
                // listed in /MODULES
-               return Version(1,1,0,2,VF_COMMON|VF_VENDOR,API_VERSION);
+               return Version(1,2,0,2,VF_COMMON|VF_VENDOR,API_VERSION);
        }
 
        virtual void OnRehash(User* user, const std::string &parameter)