]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chghost.cpp
Automatically attach modules to events
[user/henk/code/inspircd.git] / src / modules / m_chghost.cpp
index e0944b46b06a2015550f4df7790488d4393b64a2..4fcb5ce80c46567637a3e082e788a79983e21d36 100644 (file)
@@ -98,8 +98,6 @@ class ModuleChgHost : public Module
        {
                OnRehash(NULL);
                ServerInstance->Modules->AddService(cmd);
-               Implementation eventlist[] = { I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        void OnRehash(User* user) CXX11_OVERRIDE