diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-04-15 15:39:35 -0700 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-04-15 15:39:35 -0700 |
commit | c2fb38096ea4e75a680e57e103d4a4986aa84c75 (patch) | |
tree | d0a8fd0a602867dd6dc406bdc8206fa049ba757e /protocols/jabber/iq.c | |
parent | cd4723c257f9f7bd8d4a46c6562f93c2aefc3dbb (diff) |
Cleaned up struct im_connection. No more username/password stuff since
it's in acc too. wants_to_die is now an argument to imc_logout().
Diffstat (limited to 'protocols/jabber/iq.c')
-rw-r--r-- | protocols/jabber/iq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/jabber/iq.c b/protocols/jabber/iq.c index 86dca30a..fc6f223d 100644 --- a/protocols/jabber/iq.c +++ b/protocols/jabber/iq.c @@ -39,7 +39,7 @@ xt_status jabber_pkt_iq( struct xt_node *node, gpointer data ) if( !type ) { imc_error( ic, "Received IQ packet without type." ); - imc_logout( ic ); + imc_logout( ic, TRUE ); return XT_ABORT; } @@ -219,7 +219,7 @@ static xt_status jabber_do_iq_auth( struct im_connection *ic, struct xt_node *no if( !( query = xt_find_node( node->children, "query" ) ) ) { imc_log( ic, "WARNING: Received incomplete IQ packet while authenticating" ); - imc_logout( ic ); + imc_logout( ic, FALSE ); return XT_HANDLED; } @@ -258,7 +258,7 @@ static xt_status jabber_do_iq_auth( struct im_connection *ic, struct xt_node *no xt_free_node( reply ); imc_error( ic, "Can't find suitable authentication method" ); - imc_logout( ic ); + imc_logout( ic, FALSE ); return XT_ABORT; } @@ -277,14 +277,14 @@ static xt_status jabber_finish_iq_auth( struct im_connection *ic, struct xt_node if( !( type = xt_find_attr( node, "type" ) ) ) { imc_log( ic, "WARNING: Received incomplete IQ packet while authenticating" ); - imc_logout( ic ); + imc_logout( ic, FALSE ); return XT_HANDLED; } if( strcmp( type, "error" ) == 0 ) { imc_error( ic, "Authentication failure" ); - imc_logout( ic ); + imc_logout( ic, FALSE ); return XT_ABORT; } else if( strcmp( type, "result" ) == 0 ) |