]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermodes.cpp
AMD64 warning 'fix' which tested fine when I added it seems to now...stop things...
[user/henk/code/inspircd.git] / src / modules / m_opermodes.cpp
index a49cb34e8e9aaf3d065c084717542febb2b161ca..d99a7ad8ae19c35e80764589292747b7da4f71ca 100644 (file)
@@ -40,7 +40,13 @@ class ModuleModesOnOper : public Module
 
        void Implements(char* List)
        {
-               List[I_OnOper] = 1;
+               List[I_OnPostOper] = List[I_OnRehash] = 1;
+       }
+
+       virtual void OnRehash(const std::string &parameter)
+       {
+               delete Conf;
+               Conf = new ConfigReader;
        }
        
        virtual ~ModuleModesOnOper()
@@ -53,7 +59,7 @@ class ModuleModesOnOper : public Module
                return Version(1,0,0,1,VF_VENDOR);
        }
        
-       virtual void OnOper(userrec* user, std::string opertype)
+       virtual void OnPostOper(userrec* user, const std::string &opertype)
        {
                // whenever a user opers, go through the oper types, find their <type:modes>,
                // and if they have one apply their modes. The mode string can contain +modes