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 a stream error, print the stanza.
[cascardo/pubsub-bot.git]
/
status.c
diff --git
a/status.c
b/status.c
index
cd77307
..
6af0d44
100644
(file)
--- a/
status.c
+++ b/
status.c
@@
-347,6
+347,10
@@
hook (void *data, int type, iks *node)
if (xmpp_features_hook (parser, node) == 0)
return IKS_OK;
}
+ else if (!iks_strcmp (name, "stream:error"))
+ {
+ printf ("streamerror: %s\n", iks_string (iks_stack (node), node));
+ }
else
{
if (xmpp_other_hook (parser, node, ns) == 0)