projects
/
cascardo
/
pubsub-bot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
In case of SASL failure, print the stanza.
[cascardo/pubsub-bot.git]
/
status.c
diff --git
a/status.c
b/status.c
index
6af0d44
..
489c580
100644
(file)
--- 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;