]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_remove.cpp
Automatically attach modules to events
[user/henk/code/inspircd.git] / src / modules / m_remove.cpp
index 19b774f040755b43b056e3887b5a43f8b0317046..43f7065b5e429e12d694d7ef1f54db5bef9cb3fc 100644 (file)
@@ -207,8 +207,6 @@ class ModuleRemove : public Module
                ServerInstance->Modules->AddService(cmd1);
                ServerInstance->Modules->AddService(cmd2);
                OnRehash(NULL);
-               Implementation eventlist[] = { I_On005Numeric, I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        void On005Numeric(std::map<std::string, std::string>& tokens) CXX11_OVERRIDE