diff options
| author | 2020-02-19 01:29:45 +0000 | |
|---|---|---|
| committer | 2020-02-19 01:29:45 +0000 | |
| commit | 7bdd72f634f994dcbd9bfbc865d0087143fb748d (patch) | |
| tree | 11784350f097d56704426e604fdc0009ec35afb2 /src/modules.cpp | |
| parent | Move FindNickOnly to UserManager. (diff) | |
| parent | Bump the module ABI version. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 5 |
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); } }; |
