aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_xline_db.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-09-05 02:59:56 +0100
committerGravatar Sadie Powell2022-09-05 02:59:56 +0100
commit6bdf1ad525d8021f55720ece65bcc0f0a8f1f631 (patch)
tree855faf2ee6f49e51395c8659e643807219df0ffc /src/modules/m_xline_db.cpp
parentFix unnecessarily using c_str in parameters that take a std::string. (diff)
Make the temporary filenames used by modules more unique.
This prevents zombie files from causing problems.
Diffstat (limited to 'src/modules/m_xline_db.cpp')
-rw-r--r--src/modules/m_xline_db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_xline_db.cpp b/src/modules/m_xline_db.cpp
index 727adb5fe..ca48f883d 100644
--- a/src/modules/m_xline_db.cpp
+++ b/src/modules/m_xline_db.cpp
@@ -103,7 +103,7 @@ class ModuleXLineDB
* -- w00t
*/
ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Opening temporary database");
- std::string xlinenewdbpath = xlinedbpath + ".new";
+ const std::string xlinenewdbpath = xlinedbpath + ".new." + ConvToStr(ServerInstance->Time());
std::ofstream stream(xlinenewdbpath.c_str());
if (!stream.is_open())
{