diff options
| author | George Hazan <ghazan@miranda.im> | 2022-07-16 21:23:06 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2022-07-16 21:23:06 +0300 |
| commit | cd4272ca22d47cdf673bfb0e5ec353acca3d9569 (patch) | |
| tree | 0e2a4879766d8197cdf8a8fb6d5f5033399a0ea4 /plugins/MirLua/src/Modules | |
| parent | d6a052756f58211067a7a67d7e3c1dbe7e6c9465 (diff) | |
Contact_IsGroupChat - a helper to detect chat rooms
Diffstat (limited to 'plugins/MirLua/src/Modules')
| -rw-r--r-- | plugins/MirLua/src/Modules/m_message.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/Modules/m_message.cpp b/plugins/MirLua/src/Modules/m_message.cpp index 00b6b4c629..f4c6e80ccb 100644 --- a/plugins/MirLua/src/Modules/m_message.cpp +++ b/plugins/MirLua/src/Modules/m_message.cpp @@ -27,7 +27,7 @@ static int message_Send(lua_State *L) INT_PTR res = 1; const char *szProto = Proto_GetBaseAccountName(hContact); - if (db_get_b(hContact, szProto, "ChatRoom", 0) == TRUE) { + if (Contact_IsGroupChat(hContact, szProto)) { ptrW wszChatRoom(db_get_wsa(hContact, szProto, "ChatRoomID")); ptrW wszMessage(mir_utf8decodeW(message)); res = Chat_SendUserMessage(szProto, wszChatRoom, wszMessage); |
