diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-10-24 20:45:24 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-10-24 20:45:24 +0000 |
commit | 5262fce019621330587fbae32feb5adf1c62c5ea (patch) | |
tree | 97b614e9bced0795a23d1ed5b436d588bc55f33a /plugins/MirLua/src/m_chat.cpp | |
parent | 88b647fa71a44bcb4f3c90c4c4e8c77f2d2b08da (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_chat.cpp')
-rw-r--r-- | plugins/MirLua/src/m_chat.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/MirLua/src/m_chat.cpp b/plugins/MirLua/src/m_chat.cpp index fb3b9d9ad9..57a37ae7bd 100644 --- a/plugins/MirLua/src/m_chat.cpp +++ b/plugins/MirLua/src/m_chat.cpp @@ -108,25 +108,25 @@ static int gce__index(lua_State *L) GCEVENT *gce = (GCEVENT*)luaL_checkudata(L, 1, MT_GCEVENT);
const char *key = luaL_checkstring(L, 2);
- if (mir_strcmpi(key, "Module"))
+ if (mir_strcmpi(key, "Module") == 0)
lua_pushstring(L, gce->pDest->pszModule);
- if (mir_strcmpi(key, "Id"))
+ else if (mir_strcmpi(key, "Id") == 0)
lua_pushstring(L, ptrA(mir_utf8encodeT(gce->pDest->ptszID)));
- if (mir_strcmpi(key, "Type"))
+ else if (mir_strcmpi(key, "Type") == 0)
lua_pushinteger(L, gce->pDest->iType);
- if (mir_strcmpi(key, "Timestamp"))
+ else if (mir_strcmpi(key, "Timestamp") == 0)
lua_pushnumber(L, gce->time);
- if (mir_strcmpi(key, "IsMe"))
+ else if (mir_strcmpi(key, "IsMe") == 0)
lua_pushboolean(L, gce->bIsMe);
- if (mir_strcmpi(key, "Flags"))
+ else if (mir_strcmpi(key, "Flags") == 0)
lua_pushinteger(L, gce->dwFlags);
- if (mir_strcmpi(key, "Uid"))
+ else if (mir_strcmpi(key, "Uid") == 0)
lua_pushstring(L, ptrA(mir_utf8encodeT(gce->pDest->ptszID)));
- if (mir_strcmpi(key, "Nick"))
+ else if (mir_strcmpi(key, "Nick") == 0)
lua_pushstring(L, ptrA(mir_utf8encodeT(gce->pDest->ptszID)));
- if (mir_strcmpi(key, "Status"))
+ else if (mir_strcmpi(key, "Status") == 0)
lua_pushstring(L, ptrA(mir_utf8encodeT(gce->pDest->ptszID)));
- if (mir_strcmpi(key, "Text"))
+ else if (mir_strcmpi(key, "Text") == 0)
lua_pushstring(L, ptrA(mir_utf8encodeT(gce->pDest->ptszID)));
else
lua_pushnil(L);
|