diff options
-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) };
|