]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sethost.cpp
Fix these to use new hook system (u_listmode wasnt fixed yet)
[user/henk/code/inspircd.git] / src / modules / m_sethost.cpp
index 87b88666102b36fcf4666b78880edcb1472dcab9..7f0b3e1aadc9344146971db983b77fa0197e23d3 100644 (file)
@@ -72,6 +72,8 @@ class ModuleSetHost : public Module
                OnRehash(NULL,"");
                mycommand = new CommandSethost(ServerInstance, hostmap);
                ServerInstance->AddCommand(mycommand);
+               Implementation eventlist[] = { I_OnRehash };
+               ServerInstance->Modules->Attach(eventlist, this, 1);
        }
 
        void Implements(char* List)