diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-10-14 05:42:47 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-10-14 05:42:47 +0300 |
commit | 281c4145eb68a402e9136f386a6acfa0e5db2dbc (patch) | |
tree | 96d57766c81cfe93c4b1e90cffad382da013aa2a /utilities.cpp | |
parent | 1e64a4b3a4571c2e5b16d1129439bb2ef12919cd (diff) |
backported fixes from miranda ng
Diffstat (limited to 'utilities.cpp')
-rwxr-xr-x | utilities.cpp | 8 |
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-----"))) |