summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-05-12 23:42:20 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-05-12 23:42:20 +0200
commit00c0409dd47fe985abf0f8d32cd66c8ef81fe708 (patch)
tree20700a4970690c355d8eae364bbd2e12bc131db8 /src/modules.cpp
parentf757c2d75bc284211f3b53b2819b88becfd8632f (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.cpp6
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;