summaryrefslogtreecommitdiff
path: root/modules/database/db_sql_live_read.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/database/db_sql_live_read.cpp')
-rw-r--r--modules/database/db_sql_live_read.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/database/db_sql_live_read.cpp b/modules/database/db_sql_live_read.cpp
index 90a36d10a..e79e4c27d 100644
--- a/modules/database/db_sql_live_read.cpp
+++ b/modules/database/db_sql_live_read.cpp
@@ -34,7 +34,7 @@ class SQLCache : public Timer
class MySQLLiveModule : public Module
{
- service_reference<SQLProvider, Base> SQL;
+ service_reference<SQLProvider> SQL;
SQLCache chan_cache, nick_cache, core_cache;
@@ -51,7 +51,7 @@ class MySQLLiveModule : public Module
public:
MySQLLiveModule(const Anope::string &modname, const Anope::string &creator) :
- Module(modname, creator, DATABASE), SQL("")
+ Module(modname, creator, DATABASE), SQL("", "")
{
this->OnReload();
@@ -63,7 +63,7 @@ class MySQLLiveModule : public Module
{
ConfigReader config;
Anope::string engine = config.ReadValue("db_sql", "engine", "", 0);
- this->SQL = engine;
+ this->SQL = service_reference<SQLProvider>("SQLProvider", engine);
}
void OnShutdown()