]> 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 bb8f1b57387ebea56545ae8e68532ab558ca9b53..2d20a82ab1913ef891d2e2a8409d55b7e16b211d 100644 (file)
@@ -35,7 +35,6 @@
 
 /* VERSION 3 API: With nonblocking (threaded) requests */
 
-/* $ModDesc: SQL Service Provider module for all other m_sql* modules */
 /* $CompileFlags: exec("mysql_config --include") */
 /* $LinkerFlags: exec("mysql_config --libs_r") rpath("mysql_config --libs_r") */
 
@@ -383,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);
 }