From: Thadeu Lima de Souza Cascardo Date: Sun, 17 May 2009 20:47:44 +0000 (-0300) Subject: In case of a stream error, print the stanza. X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fpubsub-bot.git;a=commitdiff_plain;h=7f0b0f9227a9bf5f51cae501f71bde6aa0598a78;ds=sidebyside In case of a stream error, print the stanza. --- diff --git a/status.c b/status.c index cd77307..6af0d44 100644 --- 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)