aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2014-10-10 23:20:53 -0300
committerdequis <dx@dxzone.com.ar>2014-10-10 23:20:53 -0300
commit0e35ff67f314fb11522430e17d607ac4f5c13c90 (patch)
treeea90802da21ca8aaffc2edaf4ec31de23bfd6f70
parentc27a9235531cfd7580170438f8e2f1f21f39a7f0 (diff)
Handle not-authorized stream errors, avoid reconnect
Got this one while trying to connect to google servers with hipchat auth
-rw-r--r--protocols/jabber/io.c5
1 files changed, 5 insertions, 0 deletions
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 ? ": " : "",