summaryrefslogtreecommitdiff
path: root/utilities.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-10-14 05:42:47 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-10-14 05:42:47 +0300
commit281c4145eb68a402e9136f386a6acfa0e5db2dbc (patch)
tree96d57766c81cfe93c4b1e90cffad382da013aa2a /utilities.cpp
parent1e64a4b3a4571c2e5b16d1129439bb2ef12919cd (diff)
backported fixes from miranda ng
Diffstat (limited to 'utilities.cpp')
-rwxr-xr-xutilities.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/utilities.cpp b/utilities.cpp
index d18b9b1..780cade 100755
--- a/utilities.cpp
+++ b/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-----")))