1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 06:36:39 +02:00

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
This commit is contained in:
Adam-
2010-05-24 06:17:25 +00:00
parent 6e7479170e
commit 7f4afc22fa
+5 -3
View File
@@ -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)