]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_conn_umodes.cpp
Some more to fix still, modules probably wont load correctly atm
[user/henk/code/inspircd.git] / src / modules / m_conn_umodes.cpp
index 23b5d82803ae57e452e8f48b11d106b4bcb58a71..2a15df0ea019582b1026885d139929971dd02d7b 100644 (file)
@@ -28,6 +28,8 @@ class ModuleModesOnConnect : public Module
        {
                
                Conf = new ConfigReader(ServerInstance);
+               Implementation eventlist[] = { I_OnPostConnect, I_OnRehash };
+               ServerInstance->Modules->Attach(eventlist, this, 2);
        }
 
        void Implements(char* List)
@@ -35,7 +37,7 @@ class ModuleModesOnConnect : public Module
                List[I_OnPostConnect] = List[I_OnRehash] = 1;
        }
 
-       virtual void OnRehash(userrec* user, const std::string &parameter)
+       virtual void OnRehash(User* user, const std::string &parameter)
        {
                DELETE(Conf);
                Conf = new ConfigReader(ServerInstance);
@@ -51,7 +53,7 @@ class ModuleModesOnConnect : public Module
                return Version(1,1,0,1,VF_VENDOR,API_VERSION);
        }
        
-       virtual void OnPostConnect(userrec* user)
+       virtual void OnPostConnect(User* user)
        {
                if (!IS_LOCAL(user))
                        return;