aboutsummaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-19 01:29:45 +0000
committerGravatar Sadie Powell2020-02-19 01:29:45 +0000
commit7bdd72f634f994dcbd9bfbc865d0087143fb748d (patch)
tree11784350f097d56704426e604fdc0009ec35afb2 /src/modules.cpp
parentMove FindNickOnly to UserManager. (diff)
parentBump the module ABI version. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 254cb2918..28729ba63 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -57,6 +57,8 @@ Version::Version(const std::string &desc, int flags, const std::string& linkdata
// These declarations define the behavours of the base class Module (which does nothing at all)
CullResult Module::cull()
{
+ if (ModuleDLLManager)
+ ServerInstance->GlobalCulls.AddItem(ModuleDLLManager);
return classbase::cull();
}
@@ -441,11 +443,8 @@ namespace
UnloadAction(Module* m) : mod(m) {}
void Call() override
{
- DLLManager* dll = mod->ModuleDLLManager;
ServerInstance->Modules.DoSafeUnload(mod);
ServerInstance->GlobalCulls.Apply();
- // In pure static mode this is always NULL
- delete dll;
ServerInstance->GlobalCulls.AddItem(this);
}
};