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.cpp6
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);