summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_module_loader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/mlua_module_loader.cpp')
-rw-r--r--plugins/MirLua/src/mlua_module_loader.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/plugins/MirLua/src/mlua_module_loader.cpp b/plugins/MirLua/src/mlua_module_loader.cpp
index 426f7bd9e6..063d554367 100644
--- a/plugins/MirLua/src/mlua_module_loader.cpp
+++ b/plugins/MirLua/src/mlua_module_loader.cpp
@@ -7,16 +7,11 @@ CLuaModuleLoader::CLuaModuleLoader(lua_State *L) : L(L)
void CLuaModuleLoader::Load(const char *name, lua_CFunction loader)
{
luaL_getsubtable(L, LUA_REGISTRYINDEX, "_LOADED");
- lua_getfield(L, -1, name);
- if (lua_toboolean(L, -1))
- Log("Module %s will be replaced with new one");
- lua_pop(L, 1);
lua_pushcfunction(L, loader);
lua_pushstring(L, name);
luaM_pcall(L, 1, 1);
lua_setfield(L, -2, name);
lua_pop(L, 1);
- lua_pop(L, 1);
}
void CLuaModuleLoader::Preload(const char *name, lua_CFunction loader)