From 2826ce96c351ae3d5fc7dea6b4bc60e92b23e550 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 7 Jan 2016 13:17:33 +0000 Subject: MirLua: fixed module loading git-svn-id: http://svn.miranda-ng.org/main/trunk@16046 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_module_loader.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'plugins/MirLua/src/mlua_module_loader.cpp') 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) -- cgit v1.2.3