From 0e35ff67f314fb11522430e17d607ac4f5c13c90 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 10 Oct 2014 23:20:53 -0300 Subject: Handle not-authorized stream errors, avoid reconnect Got this one while trying to connect to google servers with hipchat auth --- protocols/jabber/io.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/jabber/io.c') diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c index 6f79b2d1..a8f7d09f 100644 --- a/protocols/jabber/io.c +++ b/protocols/jabber/io.c @@ -505,6 +505,11 @@ static xt_status jabber_pkt_stream_error( struct xt_node *node, gpointer data ) imcb_error( ic, "Account and resource used from a different location" ); allow_reconnect = FALSE; } + else if( strcmp( err->code, "not-authorized" ) == 0 ) + { + imcb_error( ic, "Not authorized" ); + allow_reconnect = FALSE; + } else { imcb_error( ic, "Stream error: %s%s%s", err->code, err->text ? ": " : "", -- cgit v1.2.3