summaryrefslogtreecommitdiff
path: root/messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'messages.cpp')
-rwxr-xr-xmessages.cpp4
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))