comparison mcabber/mcabber/xmpp.c @ 1909:9c14153e2580

Do not display unhandled IQ result messages to the log window We display the message only in the debug log file, because these messages are usually ignored anyway (ideally we would create a handler explicitly when sending the initial IQ request). Thanks to VarLog for the report!
author Mikael Berthe <mikael@lilotux.net>
date Sun, 18 Apr 2010 14:14:05 +0200
parents e2def760c6d0
children 3695266e16c7
comparison
equal deleted inserted replaced
1908:e2def760c6d0 1909:9c14153e2580
1482 } 1482 }
1483 1483
1484 if (mstype == LM_MESSAGE_SUB_TYPE_RESULT) { 1484 if (mstype == LM_MESSAGE_SUB_TYPE_RESULT) {
1485 scr_LogPrint(LPRINT_DEBUG, "Unhandled IQ result? %s", 1485 scr_LogPrint(LPRINT_DEBUG, "Unhandled IQ result? %s",
1486 lm_message_node_to_string(m->node)); 1486 lm_message_node_to_string(m->node));
1487
1488 scr_LogPrint(LPRINT_NORMAL, "Received unhandled IQ result from <%s>.",
1489 lm_message_get_from(m));
1490 return LM_HANDLER_RESULT_ALLOW_MORE_HANDLERS; 1487 return LM_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
1491 } 1488 }
1492 1489
1493 for (x = m->node->children; x; x=x->next) { 1490 for (x = m->node->children; x; x=x->next) {
1494 xmlns = lm_message_node_get_attribute(x, "xmlns"); 1491 xmlns = lm_message_node_get_attribute(x, "xmlns");