summaryrefslogtreecommitdiff
path: root/modules/database/db_sql_live_write.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/database/db_sql_live_write.cpp')
-rw-r--r--modules/database/db_sql_live_write.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/database/db_sql_live_write.cpp b/modules/database/db_sql_live_write.cpp
index a97f57359..15bb6e91f 100644
--- a/modules/database/db_sql_live_write.cpp
+++ b/modules/database/db_sql_live_write.cpp
@@ -25,7 +25,7 @@ class DBMySQL : public Module
{
private:
MySQLInterface sqlinterface;
- service_reference<SQLProvider, Base> SQL;
+ service_reference<SQLProvider> SQL;
std::set<Anope::string> tables;
void RunQuery(const SQLQuery &query)
@@ -106,7 +106,7 @@ class DBMySQL : public Module
time_t lastwarn;
bool ro;
- DBMySQL(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, DATABASE), sqlinterface(this), SQL("")
+ DBMySQL(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, DATABASE), sqlinterface(this), SQL("", "")
{
this->lastwarn = 0;
this->ro = false;
@@ -124,7 +124,7 @@ class DBMySQL : public Module
{
ConfigReader config;
Anope::string engine = config.ReadValue("db_sql", "engine", "", 0);
- this->SQL = engine;
+ this->SQL = service_reference<SQLProvider>("SQLProvider", engine);
}
void OnServerConnect()