diff --git a/znc.cpp b/znc.cpp index b7bd67c1..9c877b8b 100644 --- a/znc.cpp +++ b/znc.cpp @@ -307,7 +307,7 @@ CString CZNC::ExpandConfigPath(const CString& sConfigFile) { bool CZNC::WriteConfig() { CFile File(m_sConfigFile); - if (!File.Move(GetConfBackupPath() + "/" + File.GetShortName() + "-" + CString::ToString(time(NULL)))) { + if (!File.Copy(GetConfBackupPath() + "/" + File.GetShortName() + "-" + CString::ToString(time(NULL)))) { return false; }