diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-06-02 06:54:03 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-06-02 06:54:03 +0300 |
commit | 7b7229fd6fa8df0fbe52f82aa7b08354ddda76ba (patch) | |
tree | dc9ac8d8623ed9f8b98d247a6e85d77a9f151d48 /messages.cpp | |
parent | e321f6795124cc95aab0e194600f88d97aca5f45 (diff) |
option to disable prescense subscription
metacontacts fix
Diffstat (limited to 'messages.cpp')
-rwxr-xr-x | messages.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/messages.cpp b/messages.cpp index db4e404..18b2378 100755 --- a/messages.cpp +++ b/messages.cpp @@ -875,7 +875,7 @@ int SendMsgSvc(WPARAM w, LPARAM l) return CallService(MS_PROTO_CHAINSEND, w, l); } } - if(metaIsProtoMetaContacts(ccs->hContact) || !isContactSecured(ccs->hContact)) + if(!isContactSecured(ccs->hContact) || metaIsProtoMetaContacts(ccs->hContact)) { mir_free(msg); return CallService(MS_PROTO_CHAINSEND, w, l); @@ -917,6 +917,8 @@ int HookSendMsg(WPARAM w, LPARAM l) } event_processing_mutex.unlock(); } + if(metaIsProtoMetaContacts(hContact) && !isContactSecured(metaGetMostOnline(hContact))) + return 0; return 1; } if(!isContactSecured(hContact)) |