From 7b7229fd6fa8df0fbe52f82aa7b08354ddda76ba Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 2 Jun 2012 06:54:03 +0300 Subject: option to disable prescense subscription metacontacts fix --- messages.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'messages.cpp') 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)) -- cgit v1.2.3