diff options
| author | 2010-03-06 00:19:13 +0000 | |
|---|---|---|
| committer | 2010-08-03 17:32:39 -0400 | |
| commit | 1b908a10d4a56aa13f51dd83af2428047eb80772 (patch) | |
| tree | 470f6ba25243cf7e04d79dfab1b9e792636a892e /src/modules/m_sqloper.cpp | |
| parent | Fix SQL modules not all using AddService, noticed by Morpheus (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_sqloper.cpp')
| -rw-r--r-- | src/modules/m_sqloper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp index 871ef7d46..cca391cf5 100644 --- a/src/modules/m_sqloper.cpp +++ b/src/modules/m_sqloper.cpp @@ -32,6 +32,10 @@ class ModuleSQLOper : public Module public: ModuleSQLOper() : saved_user("sqloper_user", this), saved_pass("sqloper_pass", this) { + } + + void init() + { OnRehash(NULL); SQLutils = ServerInstance->Modules->Find("m_sqlutils.so"); |
