summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/m_chat.cpp')
-rw-r--r--plugins/MirLua/src/m_chat.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_chat.cpp b/plugins/MirLua/src/m_chat.cpp
index 7a2428c67f..78aa88c810 100644
--- a/plugins/MirLua/src/m_chat.cpp
+++ b/plugins/MirLua/src/m_chat.cpp
@@ -47,8 +47,7 @@ int GCHookEventObjParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param)
lua_pushstring(L, ptrA(mir_utf8encodeT(gce->pDest->ptszID)));
lua_settable(L, -3);
- if (lua_pcall(L, 2, 1, 0))
- printf("%s\n", lua_tostring(L, -1));
+ luaM_pcall(L, 2, 1);
int res = (int)lua_tointeger(L, 1);