diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-05-24 06:17:25 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-05-24 06:17:25 +0000 |
commit | 7f4afc22fac7d30dbc093e59b6122e871bcf6dac (patch) | |
tree | f305373dbb7d29a830c4d42d72ba50d7050590d2 | |
parent | 6e7479170ee904c8e132a2373261e3f35843344d (diff) |
Truncate memo table before sqlsync and actually add sglines
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2982 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | src/modules/mysql/db_mysql_write.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/mysql/db_mysql_write.cpp b/src/modules/mysql/db_mysql_write.cpp index 6810b4750..b7b94a3a3 100644 --- a/src/modules/mysql/db_mysql_write.cpp +++ b/src/modules/mysql/db_mysql_write.cpp @@ -237,6 +237,8 @@ static void SaveDatabases() query << "TRUNCATE TABLE `anope_ns_access`"; ExecuteQuery(query); + query << "TRUNCATE TABLE `anope_ms_info`"; + ExecuteQuery(query); for (int i = 0; i < 1024; ++i) { @@ -348,11 +350,11 @@ static void SaveDatabases() me->OnAddAkill(NULL, ak); } - for (int i = 0; i < szlines.count; ++i) + for (int i = 0; i < sglines.count; ++i) { - SXLine *x = static_cast<SXLine *>(szlines.list[i]); + SXLine *x = static_cast<SXLine *>(sglines.list[i]); - me->OnAddSXLine(NULL, x, SX_SZLINE); + me->OnAddSXLine(NULL, x, SX_SGLINE); } for (int i = 0; i < sqlines.count; ++i) |