1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 15:06:37 +02:00
This commit is contained in:
Adam
2012-01-25 15:48:07 -05:00
parent e88e37c59b
commit 52eaa7d6d6
53 changed files with 174 additions and 159 deletions
+3 -3
View File
@@ -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()