diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-11-13 21:55:05 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-11-13 21:55:05 +0000 |
commit | 06639e0d8ec7a181417fbc645e353acdcac8f271 (patch) | |
tree | 1c58800da7c860e35e36fe43f6278eb96744faf3 /plugins/MirLua/src/m_chat.cpp | |
parent | 174c71beee3a68982cea9244423f117e0af375a5 (diff) |
MirLua: more standart in work with metatables
git-svn-id: http://svn.miranda-ng.org/main/trunk@15720 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_chat.cpp')
-rw-r--r-- | plugins/MirLua/src/m_chat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_chat.cpp b/plugins/MirLua/src/m_chat.cpp index 5874db12bd..cc32d26d78 100644 --- a/plugins/MirLua/src/m_chat.cpp +++ b/plugins/MirLua/src/m_chat.cpp @@ -123,11 +123,11 @@ static int gce__index(lua_State *L) else if (mir_strcmpi(key, "Uid") == 0)
lua_pushstring(L, ptrA(mir_utf8encodeT(gce->pDest->ptszID)));
else if (mir_strcmpi(key, "Nick") == 0)
- lua_pushstring(L, ptrA(mir_utf8encodeT(gce->pDest->ptszID)));
+ lua_pushstring(L, ptrA(mir_utf8encodeT(gce->ptszNick)));
else if (mir_strcmpi(key, "Status") == 0)
- lua_pushstring(L, ptrA(mir_utf8encodeT(gce->pDest->ptszID)));
+ lua_pushstring(L, ptrA(mir_utf8encodeT(gce->ptszStatus)));
else if (mir_strcmpi(key, "Text") == 0)
- lua_pushstring(L, ptrA(mir_utf8encodeT(gce->pDest->ptszID)));
+ lua_pushstring(L, ptrA(mir_utf8encodeT(gce->ptszText)));
else
lua_pushnil(L);
|