summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_msg_buttonsbar.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-10-24 20:45:24 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-10-24 20:45:24 +0000
commit5262fce019621330587fbae32feb5adf1c62c5ea (patch)
tree97b614e9bced0795a23d1ed5b436d588bc55f33a /plugins/MirLua/src/m_msg_buttonsbar.cpp
parent88b647fa71a44bcb4f3c90c4c4e8c77f2d2b08da (diff)
MirLua: massive bug fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15610 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_msg_buttonsbar.cpp')
-rw-r--r--plugins/MirLua/src/m_msg_buttonsbar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_msg_buttonsbar.cpp b/plugins/MirLua/src/m_msg_buttonsbar.cpp
index b7824e78aa..a5007f7d46 100644
--- a/plugins/MirLua/src/m_msg_buttonsbar.cpp
+++ b/plugins/MirLua/src/m_msg_buttonsbar.cpp
@@ -236,13 +236,13 @@ static int bcd__index(lua_State *L)
CustomButtonClickData *bcd = *(CustomButtonClickData**)luaL_checkudata(L, 1, MT_CUSTOMBUTTONCLICKDATA);
const char *key = lua_tostring(L, 2);
- if (!mir_strcmpi(key, "Module"))
+ if (mir_strcmpi(key, "Module") == 0)
lua_pushstring(L, ptrA(mir_utf8encode(bcd->pszModule)));
- else if (!mir_strcmpi(key, "ButtonID"))
+ else if (mir_strcmpi(key, "ButtonID") == 0)
lua_pushinteger(L, bcd->dwButtonId);
- else if (!mir_strcmpi(key, "hContact"))
+ else if (mir_strcmpi(key, "hContact") == 0)
lua_pushinteger(L, bcd->hContact);
- else if (!mir_strcmpi(key, "Flags"))
+ else if (mir_strcmpi(key, "Flags") == 0)
lua_pushinteger(L, bcd->flags);
else
lua_pushnil(L);