summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/utilities.cpp
diff options
context:
space:
mode:
authorAlexander Gluzsky <sss123next@list.ru>2012-10-14 01:34:34 +0000
committerAlexander Gluzsky <sss123next@list.ru>2012-10-14 01:34:34 +0000
commit888ed6aaa3fc2d01e865359a8cacf68059ad579d (patch)
treeeddc9b21cec70b1a4aebd36cf6ac68b01eb73978 /plugins/New_GPG/src/utilities.cpp
parentfd90113f1a40064a9a6dc670a60dd3b2a738a467 (diff)
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
Diffstat (limited to 'plugins/New_GPG/src/utilities.cpp')
-rwxr-xr-xplugins/New_GPG/src/utilities.cpp8
1 files changed, 8 insertions, 0 deletions
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-----")))