diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-09 16:56:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-09 16:56:30 +0000 |
commit | 7963b60b9f1bcd478f537f57abde51204c97eb90 (patch) | |
tree | d0e892316468ea91d4a87f9ea815ce7224737397 /protocols/MRA/src/Mra_proto.cpp | |
parent | f6233a8261525da7c1a7ee52afd46d1980275a40 (diff) |
- fixed regression with passive contact addition;
- fixed "Bad date sent"
git-svn-id: http://svn.miranda-ng.org/main/trunk@6032 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/Mra_proto.cpp')
-rw-r--r-- | protocols/MRA/src/Mra_proto.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/MRA/src/Mra_proto.cpp b/protocols/MRA/src/Mra_proto.cpp index 9af85b3299..a7ac12db4f 100644 --- a/protocols/MRA/src/Mra_proto.cpp +++ b/protocols/MRA/src/Mra_proto.cpp @@ -612,13 +612,13 @@ bool CMraProto::CmdAuthAck(BinBuffer &buf) db_event_add(0, &dbei);
}
- DWORD dwFlags = getDword(hContact, "ContactServerFlags", 0);
- if (dwFlags & CONTACT_INTFLAG_NOT_AUTHORIZED) {
- dwFlags &= ~CONTACT_INTFLAG_NOT_AUTHORIZED;
- setDword(hContact, "ContactServerFlags", dwFlags);
- }
-
+ DWORD dwTemp;
+ GetContactBasicInfoW(hContact, NULL, NULL, NULL, &dwTemp, NULL, NULL, NULL, NULL);
+ dwTemp &= ~CONTACT_INTFLAG_NOT_AUTHORIZED;
+ SetContactBasicInfoW(hContact, SCBIFSI_LOCK_CHANGES_EVENTS, SCBIF_SERVER_FLAG, 0, 0, 0, dwTemp, 0, 0, 0, 0);
+ setDword(hContact, "HooksLocked", TRUE);
db_unset(hContact, "CList", "NotOnList");
+ setDword(hContact, "HooksLocked", FALSE);
return true;
}
|