From ad97d73681f5f367fb3ad182bb2fcf80ad5ff220 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 14 Oct 2012 05:44:47 +0300 Subject: merged fixes from miranda_ng main repo --- src/utilities.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/utilities.cpp') diff --git a/src/utilities.cpp b/src/utilities.cpp index 566bc87..aae4d87 100755 --- a/src/utilities.cpp +++ b/src/utilities.cpp @@ -708,6 +708,14 @@ static JABBER_HANDLER_FUNC SendHandler(IJabberInterface *ji, HXML node, void *pU { LPCTSTR str = xi.getText(local_node); LPCTSTR nodename = xi.getName(local_node); + LPCTSTR attr = xi.getAttrValue(local_node, _T("to")); + if(attr) + { + HANDLE hContact = ji->Sys()->ContactFromJID(attr); + if(hContact) + if(!isContactSecured(hContact)) + return FALSE; + } if(str) { if(_tcsstr(str, _T("-----BEGIN PGP MESSAGE-----")) && _tcsstr(str, _T("-----END PGP MESSAGE-----"))) -- cgit v1.2.3