1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 17:46:39 +02:00

Merge pull request #120 from Alef-Burzmali/2.0+nobackupok

Fix db_flatfile to read the "nobackokay" setting
This commit is contained in:
Adam
2015-09-06 16:12:22 -04:00
+2 -2
View File
@@ -149,7 +149,7 @@ class DBFlatFile : public Module, public Pipe
Anope::string err = Anope::LastError();
Log(this) << "Unable to back up database " << *it << " (" << err << ")!";
if (!Config->GetModule(this)->Get<bool>("nobackupok"))
if (!Config->GetModule(this)->Get<bool>("nobackupokay"))
{
Anope::Quitting = true;
Anope::QuitReason = "Unable to back up database " + *it + " (" + err + ")";
@@ -214,7 +214,7 @@ class DBFlatFile : public Module, public Pipe
Log(this) << "Error saving databases: " << buf;
if (!Config->GetModule(this)->Get<bool>("nobackupok"))
if (!Config->GetModule(this)->Get<bool>("nobackupokay"))
Anope::Quitting = true;
}