diff options
| author | 2015-05-12 23:42:20 +0200 | |
|---|---|---|
| committer | 2015-05-12 23:42:20 +0200 | |
| commit | 00c0409dd47fe985abf0f8d32cd66c8ef81fe708 (patch) | |
| tree | 20700a4970690c355d8eae364bbd2e12bc131db8 /src/modules.cpp | |
| parent | cmd_modules Don't show the memory addresses of Module objects to opers (diff) | |
Remove support for non-unloadable (VF_STATIC) modules
No module we ship uses this flag and new modules should not use it either to make hotfixing possible
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index a7acb24d0..b8982579c 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -337,12 +337,6 @@ bool ModuleManager::CanUnload(Module* mod) ServerInstance->Logs->Log("MODULE", LOG_DEFAULT, LastModuleError); return false; } - if (mod->GetVersion().Flags & VF_STATIC) - { - LastModuleError = "Module " + mod->ModuleSourceFile + " not unloadable (marked static)"; - ServerInstance->Logs->Log("MODULE", LOG_DEFAULT, LastModuleError); - return false; - } mod->dying = true; return true; |
