diff options
-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; } |