summaryrefslogtreecommitdiff
path: root/src/utilities.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-10-14 05:44:47 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-10-14 05:44:47 +0300
commitad97d73681f5f367fb3ad182bb2fcf80ad5ff220 (patch)
tree559549f7e514e73dd270608f7046b09a98e59bfe /src/utilities.cpp
parent1566618e519c30245d30f8f56674488e2a257db2 (diff)
merged fixes from miranda_ng main repo
Diffstat (limited to 'src/utilities.cpp')
-rwxr-xr-xsrc/utilities.cpp8
1 files changed, 8 insertions, 0 deletions
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-----")))