From 500dd4848842f6d4207584417448586d060fbd6a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 Jul 2022 18:07:27 +0300 Subject: Contact: group of functions gathered into the personal namespace --- plugins/MirLua/src/Modules/m_database.cpp | 2 +- plugins/MirLua/src/Modules/m_message.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/src') diff --git a/plugins/MirLua/src/Modules/m_database.cpp b/plugins/MirLua/src/Modules/m_database.cpp index eb1bef16d3..6ca2e20f28 100644 --- a/plugins/MirLua/src/Modules/m_database.cpp +++ b/plugins/MirLua/src/Modules/m_database.cpp @@ -119,7 +119,7 @@ static int db_GetContactInfo(lua_State *L) luaL_argerror(L, 2, luaL_typename(L, 2)); } - ptrW value(Contact_GetInfo(type, hContact)); + ptrW value(Contact::GetInfo(type, hContact)); if (value) lua_pushstring(L, ptrA(mir_utf8encodeW(value))); else diff --git a/plugins/MirLua/src/Modules/m_message.cpp b/plugins/MirLua/src/Modules/m_message.cpp index f4c6e80ccb..289f82c935 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 (Contact_IsGroupChat(hContact, szProto)) { + if (Contact::IsGroupChat(hContact, szProto)) { ptrW wszChatRoom(db_get_wsa(hContact, szProto, "ChatRoomID")); ptrW wszMessage(mir_utf8decodeW(message)); res = Chat_SendUserMessage(szProto, wszChatRoom, wszMessage); -- cgit v1.2.3