From 7f0b0f9227a9bf5f51cae501f71bde6aa0598a78 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sun, 17 May 2009 17:47:44 -0300 Subject: [PATCH] In case of a stream error, print the stanza. --- status.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.20.1