summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icqosc_svcs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-07 14:22:35 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-07 14:22:35 +0000
commitf25d585f07dafbcfa99e0c33dc9bbe0d72230074 (patch)
tree00525f1471ce3d20f72402c415bc8ec7974a379f /protocols/IcqOscarJ/src/icqosc_svcs.cpp
parent59975dacfc92d80bb87a51c3acf81590d4b54ee9 (diff)
- MRA clients detection for ICQ;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@12656 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/icqosc_svcs.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icqosc_svcs.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/protocols/IcqOscarJ/src/icqosc_svcs.cpp b/protocols/IcqOscarJ/src/icqosc_svcs.cpp
index bc2e768e80..0e966c5a4a 100644
--- a/protocols/IcqOscarJ/src/icqosc_svcs.cpp
+++ b/protocols/IcqOscarJ/src/icqosc_svcs.cpp
@@ -465,13 +465,11 @@ INT_PTR CIcqProto::SendYouWereAdded(WPARAM, LPARAM lParam)
if (lParam && icqOnline()) {
CCSDATA* ccs = (CCSDATA*)lParam;
if (ccs->hContact) {
- DWORD dwUin, dwMyUin;
-
+ DWORD dwUin;
if (getContactUid(ccs->hContact, &dwUin, NULL))
return 1; // Invalid contact
- dwMyUin = getContactUin(NULL);
-
+ DWORD dwMyUin = getContactUin(NULL);
if (dwUin) {
icq_sendYouWereAddedServ(dwUin, dwMyUin);
return 0; // Success
@@ -595,13 +593,10 @@ void CIcqProto::ICQAddRecvEvent(MCONTACT hContact, WORD wType, PROTORECVEVENT* p
flags |= DBEF_UTF;
if (hContact && db_get_b(hContact, "CList", "Hidden", 0)) {
- DWORD dwUin;
- uid_str szUid;
-
- //setContactHidden(hContact, 0);
-
// if the contact was hidden, add to client-list if not in server-list authed
if (!getWord(hContact, DBSETTING_SERVLIST_ID, 0) || getByte(hContact, "Auth", 0)) {
+ DWORD dwUin;
+ uid_str szUid;
getContactUid(hContact, &dwUin, &szUid);
icq_sendNewContact(dwUin, szUid); /// FIXME
}