diff options
Diffstat (limited to 'src/modules/m_testclient.cpp')
-rw-r--r-- | src/modules/m_testclient.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_testclient.cpp b/src/modules/m_testclient.cpp index c6abb0064..36027f41e 100644 --- a/src/modules/m_testclient.cpp +++ b/src/modules/m_testclient.cpp @@ -34,7 +34,10 @@ public: virtual void OnBackgroundTimer(time_t) { - Module* target = ServerInstance->Modules->FindFeature("SQL"); + ServiceProvider* prov = ServerInstance->Modules->FindService(SERVICE_DATA, "SQL"); + if (!prov) + return; + Module* target = prov->creator; if(target) { |