1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 08:16:38 +02:00

Don't reload the main database when reloading a module.

This commit is contained in:
Sadie Powell
2025-11-20 20:09:09 +00:00
parent e62ca67d2e
commit 9cc2ea8a56
+2 -1
View File
@@ -353,11 +353,12 @@ public:
if (!db)
return EVENT_STOP;
auto it = databases.emplace(nullptr, std::move(db.value())).first;
for (const auto &type : Serialize::Type::GetTypeOrder())
{
auto *s_type = Serialize::Type::Find(type);
if (s_type && !s_type->GetOwner())
LoadType(s_type, db.value());
LoadType(s_type, it->second);
}
loaded = true;