]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_mysql.cpp
Automatically attach modules to events
[user/henk/code/inspircd.git] / src / modules / extra / m_mysql.cpp
index 529682bb8ae583b7b8c49cb5d873be070567ec73..2d20a82ab1913ef891d2e2a8409d55b7e16b211d 100644 (file)
@@ -382,9 +382,6 @@ void ModuleSQL::init()
        Dispatcher = new DispatcherThread(this);
        ServerInstance->Threads->Start(Dispatcher);
 
-       Implementation eventlist[] = { I_OnRehash, I_OnUnloadModule };
-       ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
-
        OnRehash(NULL);
 }