diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-03-06 00:19:13 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-03-06 00:19:13 +0000 |
commit | dac63e16ccd698b5c667380cc5c25afd1c6cb68e (patch) | |
tree | 86aadd52b0a1555fd12a2767be2a8c64f7994a20 /src/modules/m_sqlutils.cpp | |
parent | 3c8c936a59120f963197f26eb30723589476073d (diff) |
Search for SQL service in init(), not in constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12598 e03df62e-2008-0410-955e-edbf42e46eb7
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) |