summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-01-27 19:48:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-01-27 19:48:42 +0300
commit899221e2d058f5afe30bb2ecdbf168c8ad3c15a6 (patch)
treeea2346678575a4fc5fdd9575b6a9174bd30c70dc /plugins/MirLua/src
parentc736d08681747a9453bd4c266f6dd54d8cbd79eb (diff)
Group chats: all old APIs with lookup by module+session removed
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r--plugins/MirLua/src/Modules/m_chat.cpp2
-rw-r--r--plugins/MirLua/src/Modules/m_message.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/plugins/MirLua/src/Modules/m_chat.cpp b/plugins/MirLua/src/Modules/m_chat.cpp
index 8611b6bc08..a5e7ef57e4 100644
--- a/plugins/MirLua/src/Modules/m_chat.cpp
+++ b/plugins/MirLua/src/Modules/m_chat.cpp
@@ -10,8 +10,6 @@ LUAMOD_API int luaopen_m_chat(lua_State *L)
luaL_newlib(L, chatApi);
MT<GCEVENT>(L, "GCEVENT")
- .Field(&GCEVENT::pszModule, "Module", LUA_TSTRINGA)
- .Field(&GCEVENT::pszID, "Id", LUA_TSTRINGW)
.Field(&GCEVENT::iType, "Type", LUA_TINTEGER)
.Field(&GCEVENT::time, "Timestamp", LUA_TINTEGER)
.Field(&GCEVENT::time, "IsMe", LUA_TINTEGER)
diff --git a/plugins/MirLua/src/Modules/m_message.cpp b/plugins/MirLua/src/Modules/m_message.cpp
index a00ec285e1..eee8c43f3e 100644
--- a/plugins/MirLua/src/Modules/m_message.cpp
+++ b/plugins/MirLua/src/Modules/m_message.cpp
@@ -30,7 +30,7 @@ static int message_Send(lua_State *L)
if (Contact::IsGroupChat(hContact, szProto)) {
ptrW wszChatRoom(Contact::GetInfo(CNF_UNIQUEID, hContact, szProto));
ptrW wszMessage(mir_utf8decodeW(message));
- res = Chat_SendUserMessage(szProto, wszChatRoom, wszMessage);
+ res = Chat_SendUserMessage(Chat_Find(wszChatRoom, szProto), wszMessage);
lua_pushinteger(L, res);
}
else if ((res = ProtoChainSend(hContact, PSS_MESSAGE, 0, (LPARAM)message)) != ACKRESULT_FAILED) {