1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 16:46:38 +02:00

Dont backup the database unless there is a database to backup

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2884 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-04-11 00:28:59 +00:00
parent aa677072e0
commit 626afff37d
+2 -2
View File
@@ -887,8 +887,6 @@ class DBPlain : public Module
EventReturn OnSaveDatabase()
{
BackupDatabase();
db.open(DatabaseFile.c_str(), std::ios_base::out | std::ios_base::trunc);
if (!db.is_open())
@@ -1174,6 +1172,8 @@ class DBPlain : public Module
db.close();
BackupDatabase();
return EVENT_CONTINUE;
}