diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-10 21:10:31 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-10 21:10:31 +0200 |
commit | 1e86f4d089a1748ce1449074498a283a8639663b (patch) | |
tree | 0746fa3af1a43b3063ede213b6b43c10729e58ba /protocols/Icq10/src/utils.cpp | |
parent | aec99075210e9d107eb0f4231c0bb040ba6c1eee (diff) |
fixes #1740 (ICQ10: add groupchats support)
Diffstat (limited to 'protocols/Icq10/src/utils.cpp')
-rw-r--r-- | protocols/Icq10/src/utils.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/protocols/Icq10/src/utils.cpp b/protocols/Icq10/src/utils.cpp index c99f4f7915..5f1273716f 100644 --- a/protocols/Icq10/src/utils.cpp +++ b/protocols/Icq10/src/utils.cpp @@ -187,6 +187,19 @@ INT_PTR __cdecl CIcqProto::SetAvatar(WPARAM, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// +CMStringA CIcqProto::GetUserId(MCONTACT hContact) +{ + if (isChatRoom(hContact)) + return getMStringA(hContact, "ChatRoomID"); + + return CMStringA(FORMAT, "%d", getDword(hContact, DB_KEY_UIN)); +} + +bool IsChat(const CMStringW &aimid) +{ + return aimid.Right(11) == "@chat.agent"; +} + int StatusFromString(const CMStringW &wszStatus) { if (wszStatus == "online") |