From 888ed6aaa3fc2d01e865359a8cacf68059ad579d Mon Sep 17 00:00:00 2001 From: Alexander Gluzsky Date: Sun, 14 Oct 2012 01:34:34 +0000 Subject: one more metacontacts problem fixed turned of xmpp traffic modification for contacts with disabled encryption git-svn-id: http://svn.miranda-ng.org/main/trunk@1916 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/New_GPG/src/utilities.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/New_GPG/src/utilities.cpp') diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp index 652b383cc8..0c13d33e8d 100755 --- a/plugins/New_GPG/src/utilities.cpp +++ b/plugins/New_GPG/src/utilities.cpp @@ -659,6 +659,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