From: Thadeu Lima de Souza Cascardo Date: Sun, 17 May 2009 20:48:49 +0000 (-0300) Subject: In case of SASL failure, print the stanza. X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fpubsub-bot.git;a=commitdiff_plain;h=3cc49582db24b673fe98b876113f19e1ebf21dcb In case of SASL failure, print the stanza. --- diff --git a/status.c b/status.c index 6af0d44..489c580 100644 --- a/status.c +++ b/status.c @@ -292,6 +292,9 @@ xmpp_other_hook (iksparser *parser, iks *node, char *ns) { if (!iks_strcmp (iks_name (node), "success")) iks_send_header (parser, "jabber-br.org"); + else if (!iks_strcmp (iks_name (node), "failure")) + printf ("failture to authenticate: %s\n", + iks_string (iks_stack (node), node)); return 0; } return 1;