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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user