diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-09 18:00:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-09 18:00:19 +0000 |
commit | 837006acee59b48197a1503d41ff79ea1ca35aa9 (patch) | |
tree | 49a8ce79e5508b7c6106b0a88c1dfd700a94bfa8 /protocols/MRA/src | |
parent | 3a21ab58ecc84887492f706968af7501aa3a40e4 (diff) |
standard behavior for contacts being added: they should also blink in clist
git-svn-id: http://svn.miranda-ng.org/main/trunk@6034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src')
-rw-r--r-- | protocols/MRA/src/Mra_functions.cpp | 6 | ||||
-rw-r--r-- | protocols/MRA/src/Mra_proto.cpp | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp index edb2426f00..d745d942f7 100644 --- a/protocols/MRA/src/Mra_functions.cpp +++ b/protocols/MRA/src/Mra_functions.cpp @@ -367,12 +367,12 @@ DWORD CMraProto::SetContactFlags(HANDLE hContact, DWORD dwContactFlag) setDword(hContact, "ContactFlags", dwContactFlag);
- if (dwContactFlag&CONTACT_FLAG_SHADOW)
+ if (dwContactFlag & CONTACT_FLAG_SHADOW)
db_set_b(hContact, "CList", "Hidden", 1);
else
db_unset(hContact, "CList", "Hidden");
- switch (dwContactFlag&(CONTACT_FLAG_INVISIBLE|CONTACT_FLAG_VISIBLE)) {
+ switch (dwContactFlag & (CONTACT_FLAG_INVISIBLE|CONTACT_FLAG_VISIBLE)) {
case CONTACT_FLAG_INVISIBLE:
setWord(hContact, "ApparentMode", ID_STATUS_OFFLINE);
break;
@@ -384,7 +384,7 @@ DWORD CMraProto::SetContactFlags(HANDLE hContact, DWORD dwContactFlag) break;
}
- if (dwContactFlag&CONTACT_FLAG_IGNORE)
+ if (dwContactFlag & CONTACT_FLAG_IGNORE)
CallService(MS_IGNORE_IGNORE, (WPARAM)hContact, IGNOREEVENT_MESSAGE);
else
CallService(MS_IGNORE_UNIGNORE, (WPARAM)hContact, IGNOREEVENT_MESSAGE);
diff --git a/protocols/MRA/src/Mra_proto.cpp b/protocols/MRA/src/Mra_proto.cpp index a7ac12db4f..3a1a93ccba 100644 --- a/protocols/MRA/src/Mra_proto.cpp +++ b/protocols/MRA/src/Mra_proto.cpp @@ -1814,9 +1814,6 @@ DWORD CMraProto::MraRecvCommand_Message(DWORD dwTime, DWORD dwFlags, CMStringA & bAutoGrantAuth = TRUE;
}
- if (bAdded)
- db_set_b(hContact, "CList", "Hidden", 1);
-
CMStringA szBlob = CreateBlobFromContact(hContact, wszMessage);
if (bAutoGrantAuth) { // auto grant auth
DBEVENTINFO dbei = { sizeof(dbei) };
|