From f1f08af4d7a1b4bedf55fb25af974276e5eb858c Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 12 Jul 2015 20:40:10 +0000 Subject: MirLua: - Utf8Decode? functions are returns strings (thx to Mironych) - added DecodeCustomButtonClickData to m_msg_buttonsbar - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@14546 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_message.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/MirLua/src/m_message.cpp') diff --git a/plugins/MirLua/src/m_message.cpp b/plugins/MirLua/src/m_message.cpp index f788b93f19..87e8e1a353 100644 --- a/plugins/MirLua/src/m_message.cpp +++ b/plugins/MirLua/src/m_message.cpp @@ -2,11 +2,11 @@ static int lua_Paste(lua_State *L) { - MCONTACT hContect = luaL_checkinteger(L, 1); + MCONTACT hContact = luaL_checkinteger(L, 1); ptrT text(mir_utf8decodeT(luaL_checkstring(L, 2))); MessageWindowInputData mwid = { sizeof(MessageWindowInputData) }; - mwid.hContact = luaL_checkinteger(L, 1); + mwid.hContact = hContact; mwid.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH; MessageWindowData mwd = { sizeof(MessageWindowData) }; @@ -26,11 +26,11 @@ static int lua_Paste(lua_State *L) static int lua_Send(lua_State *L) { - MCONTACT hContect = luaL_checkinteger(L, 1); + MCONTACT hContact = luaL_checkinteger(L, 1); ptrT text(mir_utf8decodeT(luaL_checkstring(L, 2))); MessageWindowInputData mwid = { sizeof(MessageWindowInputData) }; - mwid.hContact = luaL_checkinteger(L, 1); + mwid.hContact = hContact; mwid.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH; MessageWindowData mwd = { sizeof(MessageWindowData) }; -- cgit v1.2.3