diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-01-07 13:17:33 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-01-07 13:17:33 +0000 |
commit | 2826ce96c351ae3d5fc7dea6b4bc60e92b23e550 (patch) | |
tree | 2a6ae22de1c6107e5a3fe52f4dd1de2001c78afc /plugins/MirLua/src/mlua_module_loader.cpp | |
parent | 8a22b1b13cbd23e4d0a0a1cf3da9c84596b55280 (diff) |
MirLua: fixed module loading
git-svn-id: http://svn.miranda-ng.org/main/trunk@16046 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_module_loader.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua_module_loader.cpp | 5 |
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)
|