diff options
author | Adam <Adam@anope.org> | 2012-01-25 15:48:07 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-01-25 15:48:07 -0500 |
commit | 52eaa7d6d61e3373340fd5a69b92b0fb3b5609e0 (patch) | |
tree | 428f2b440ab5675ae3a9c19ae5b813f132497c79 /modules/database/db_sql_live_write.cpp | |
parent | e88e37c59b45cc43b714d1d28719eb3c2ca9579a (diff) |
Windows
Diffstat (limited to 'modules/database/db_sql_live_write.cpp')
-rw-r--r-- | modules/database/db_sql_live_write.cpp | 6 |
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() |