diff options
author | dequis <dx@dxzone.com.ar> | 2014-10-10 23:20:53 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2014-10-10 23:20:53 -0300 |
commit | 0e35ff67f314fb11522430e17d607ac4f5c13c90 (patch) | |
tree | ea90802da21ca8aaffc2edaf4ec31de23bfd6f70 /protocols/jabber/io.c | |
parent | c27a9235531cfd7580170438f8e2f1f21f39a7f0 (diff) |
Handle not-authorized stream errors, avoid reconnect
Got this one while trying to connect to google servers with hipchat auth
Diffstat (limited to 'protocols/jabber/io.c')
-rw-r--r-- | protocols/jabber/io.c | 5 |
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 ? ": " : "", |