]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sethost.cpp
Automatically attach modules to events
[user/henk/code/inspircd.git] / src / modules / m_sethost.cpp
index bc17010495e4f8cdd320aa00cc3d66b3c78b487e..636f2ff6b31ebf2a5702c932ba3f191da829d7e5 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "inspircd.h"
 
-/* $ModDesc: Provides support for the SETHOST command */
-
 /** Handle /SETHOST
  */
 class CommandSethost : public Command
@@ -80,8 +78,6 @@ class ModuleSetHost : 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