Mercurial > hg
changeset 1621:eec2fa456d0f
Do not print Unhandled IQ results to the log window
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 14 Oct 2009 23:22:37 +0200 |
parents | 52b63087f421 |
children | 90ecb027d1e3 |
files | mcabber/src/xmpp.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/xmpp.c Mon Oct 12 21:57:27 2009 +0200 +++ b/mcabber/src/xmpp.c Wed Oct 14 23:22:37 2009 +0200 @@ -1402,6 +1402,7 @@ LmMessage *m, gpointer user_data) { int i; + guint dbgflg; const char *xmlns = NULL; LmMessageNode *x; @@ -1423,8 +1424,12 @@ (lm_message_get_sub_type(m) == LM_MESSAGE_SUB_TYPE_GET)) send_iq_error(connection, m, XMPP_ERROR_NOT_IMPLEMENTED); - scr_LogPrint(LPRINT_NORMAL|LPRINT_DEBUG, "Unhandled IQ: %s", - lm_message_node_to_string(m->node)); + if (lm_message_get_sub_type(m) == LM_MESSAGE_SUB_TYPE_RESULT) + dbgflg = LPRINT_DEBUG; + else + dbgflg = LPRINT_NORMAL|LPRINT_DEBUG; + + scr_LogPrint(dbgflg, "Unhandled IQ: %s", lm_message_node_to_string(m->node)); return LM_HANDLER_RESULT_REMOVE_MESSAGE; }