diff options
author | Adam <Adam@drink-coca-cola.info> | 2010-05-19 16:59:16 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 21:03:44 -0400 |
commit | 3a2c2a916a26f4fa1844e71a9f1c2fc25337fd2b (patch) | |
tree | 93cb603a579699b51b74a450db092ab8db595e1f /src/modules/mysql/db_mysql_write.cpp | |
parent | 0358ae062b771a3e018ef147f607eae7d0bd8647 (diff) |
Dont load mlock from the database until after Anope is connected, it doesnt know all of the available modes until then
Diffstat (limited to 'src/modules/mysql/db_mysql_write.cpp')
-rw-r--r-- | src/modules/mysql/db_mysql_write.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/mysql/db_mysql_write.cpp b/src/modules/mysql/db_mysql_write.cpp index 2f7a42bb3..1888195f3 100644 --- a/src/modules/mysql/db_mysql_write.cpp +++ b/src/modules/mysql/db_mysql_write.cpp @@ -309,7 +309,7 @@ static void SaveDatabases() { AutoKick *ak = ci->GetAkick(j); - me->OnAkickAdd(ci, ak); + me->OnAkickAdd(NULL, ci, ak); } for (int k = 0; k < CA_SIZE; ++k) @@ -810,7 +810,7 @@ class DBMySQLWrite : public DBMySQL void OnLevelChange(User *u, ChannelInfo *ci, int pos, int what) { - mysqlpp::Query query(Me->Con); + mysqlpp::Query query(me->Con); if (pos >= 0) { |