diff options
author | Adam <adam@sigterm.info> | 2015-09-06 16:12:22 -0400 |
---|---|---|
committer | Adam <adam@sigterm.info> | 2015-09-06 16:12:22 -0400 |
commit | 054c227df0eea2ccfaa866b11c0cf2ce5ec5ec6e (patch) | |
tree | 67b0c91d20d6c0b21f3cd255dd7ce548d4740c33 | |
parent | 907e192aab72872d15186f87ae7acfe0f1b71901 (diff) | |
parent | 040b06ad56b19226b5c590cd9bc419c2ec489956 (diff) |
Merge pull request #120 from Alef-Burzmali/2.0+nobackupok
Fix db_flatfile to read the "nobackokay" setting
-rw-r--r-- | modules/database/db_flatfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/database/db_flatfile.cpp b/modules/database/db_flatfile.cpp index 97c88a986..8dd1bed99 100644 --- a/modules/database/db_flatfile.cpp +++ b/modules/database/db_flatfile.cpp @@ -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; } |