diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-03-04 17:12:13 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-03-04 17:12:13 +0200 |
commit | ffef21cd7a2a48d51ed40c71993b5810616d96d6 (patch) | |
tree | dfcbe6c34cec33bd6b42dd05b3147ba4c7d7f321 /utilities.cpp | |
parent | a1263e7ff1d2d2eecaa06c7c906cf1a15270b8f1 (diff) |
modified: utilities.cpp
Diffstat (limited to 'utilities.cpp')
-rwxr-xr-x | utilities.cpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/utilities.cpp b/utilities.cpp index f0a36fb..78bbca5 100755 --- a/utilities.cpp +++ b/utilities.cpp @@ -970,61 +970,6 @@ static JABBER_HANDLER_FUNC PrescenseHandler(IJabberInterface *ji, HXML node, voi static JABBER_HANDLER_FUNC MessageHandler(IJabberInterface *ji, HXML node, void *pUserData) { -/* HXML local_node = node; - HANDLE hContact = NULL; - for(int n = 0; n <= xi.getChildCount(node); n++) - { - LPCTSTR str = xi.getText(local_node); - LPCTSTR nodename = xi.getName(local_node); - if(nodename) - { - if(!_tcscmp(nodename, _T("message"))) - { - for(int n = 0; n < xi.getAttrCount(local_node); n++) - { - LPCTSTR name = xi.getAttrName(local_node, n); - LPCTSTR value = xi.getAttrValue(local_node, name); - if(!_tcscmp(name, _T("from"))) - { - hContact = ji->Sys()->ContactFromJID(value); - if(!hContact) - return FALSE; - } - if(!_tcscmp(name, _T("type"))) - { - if(_tcscmp(value, _T("error"))) - return FALSE; - } - } - } - if(!_tcscmp(nodename, _T("error"))) - { - for(int n = 0; n < xi.getAttrCount(local_node); n++) - { - LPCTSTR name = xi.getAttrName(local_node, n); - LPCTSTR value = xi.getAttrValue(local_node, name); - if(!_tcscmp(name, _T("type"))) - { - if(_tcscmp(value, _T("modify"))) - return FALSE; - } - if(!_tcscmp(name, _T("code"))) - { - if(_tcscmp(value, _T("406"))) - return FALSE; - } - } - } - if(!_tcscmp(nodename, _T("text"))) - { - LPCTSTR msg = xi.getText(local_node); - if(hContact) - HistoryLog(hContact, (char*)toUTF8(msg).c_str()); - return FALSE; - } - } - local_node = xi.getChild(node, n); - }*/ return FALSE; } |