1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:24:49 +02:00

Fix the unique runtime library names on Windows.

This commit is contained in:
Sadie Powell
2026-05-12 14:20:21 +01:00
parent 92ed0071d7
commit 1cf64a49c0
+1 -1
View File
@@ -88,7 +88,7 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
#ifdef _WIN32
/* Generate the filename for the temporary copy of the module */
auto pbuf = Anope::ExpandData("runtime/" + modname + DLL_EXT ".XXXXXX");
auto pbuf = Anope::ExpandData("runtime/" + modname + "." + Anope::ToString(Anope::CurTime) + DLL_EXT);
if (!fs::copy_file(modpath.str(), pbuf.str(), fs::copy_options::overwrite_existing, ec) || ec)
{
Log(LOG_TERMINAL) << "Error while copying " << modname << " from " << modpath