diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-05-12 23:42:20 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-05-12 23:42:20 +0200 |
commit | 00c0409dd47fe985abf0f8d32cd66c8ef81fe708 (patch) | |
tree | 20700a4970690c355d8eae364bbd2e12bc131db8 /src | |
parent | f757c2d75bc284211f3b53b2819b88becfd8632f (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')
-rw-r--r-- | src/coremods/core_info/cmd_modules.cpp | 4 | ||||
-rw-r--r-- | src/modules.cpp | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/coremods/core_info/cmd_modules.cpp b/src/coremods/core_info/cmd_modules.cpp index 7f31beaf8..0a1420e13 100644 --- a/src/coremods/core_info/cmd_modules.cpp +++ b/src/coremods/core_info/cmd_modules.cpp @@ -58,9 +58,9 @@ CmdResult CommandModules::Handle (const std::vector<std::string>& parameters, Us if (IS_LOCAL(user) && user->HasPrivPermission("servers/auspex")) { - std::string flags("SvcC"); + std::string flags("vcC"); int pos = 0; - for (int mult = 1; mult <= VF_OPTCOMMON; mult *= 2, ++pos) + for (int mult = 2; mult <= VF_OPTCOMMON; mult *= 2, ++pos) if (!(V.Flags & mult)) flags[pos] = '-'; 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; |