diff options
Diffstat (limited to 'src/modules/m_sqlutils.cpp')
-rw-r--r-- | src/modules/m_sqlutils.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/m_sqlutils.cpp b/src/modules/m_sqlutils.cpp index ebb69ca86..3071f5242 100644 --- a/src/modules/m_sqlutils.cpp +++ b/src/modules/m_sqlutils.cpp @@ -33,15 +33,14 @@ private: public: ModuleSQLutils() : idExt("sqlutils_list", this) { - Implementation eventlist[] = { I_OnChannelDelete, I_OnUnloadModule, I_OnUserDisconnect }; - ServerInstance->Modules->Attach(eventlist, this, 3); } - ~ModuleSQLutils() + void init() { + Implementation eventlist[] = { I_OnChannelDelete, I_OnUnloadModule, I_OnUserDisconnect }; + ServerInstance->Modules->Attach(eventlist, this, 3); } - void OnRequest(Request& request) { if(strcmp(SQLUTILAU, request.id) == 0) |