From 533a0aa0576ed31f1840c099267a34330952c4e8 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 28 Dec 2015 19:08:23 +0000 Subject: MirLua: minor changes git-svn-id: http://svn.miranda-ng.org/main/trunk@15960 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_module_loader.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 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 a4cce4f418..bd5074a592 100644 --- a/plugins/MirLua/src/mlua_module_loader.cpp +++ b/plugins/MirLua/src/mlua_module_loader.cpp @@ -35,10 +35,8 @@ void CLuaModuleLoader::LoadModules() lua_pushglobaltable(L); lua_getfield(L, -1, "require"); lua_pushstring(L, "m_core"); - if (lua_pcall(L, 1, 1, 0)) - CallService(MS_NETLIB_LOG, (WPARAM)hNetlib, (LPARAM)lua_tostring(L, -1)); - lua_pop(L, 1); - lua_pop(L, 1); + luaM_pcall(L, 1, 1); + lua_pop(L, 2); } void CLuaModuleLoader::Load(lua_State *L) -- cgit v1.2.3