aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/io.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-10-08 20:41:11 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-10-08 20:41:11 +0200
commit861c199fb60fecf5dab96e0ed9d4b0cf0c57822f (patch)
tree45a66a0ebd0f1d1d25016490f00471c7a3456927 /protocols/jabber/io.c
parent038d17f834219505cbbdae469b2b150117467dd0 (diff)
Moved handling of all IQ packets to event handlers. Cleaned up a LOT of
mess in iq.c!
Diffstat (limited to 'protocols/jabber/io.c')
-rw-r--r--protocols/jabber/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c
index c6ad68e0..783d6d2c 100644
--- a/protocols/jabber/io.c
+++ b/protocols/jabber/io.c
@@ -213,7 +213,7 @@ static gboolean jabber_read_callback( gpointer data, gint fd, b_input_condition
}
else
{
- return jabber_start_iq_auth( gc );
+ return jabber_init_iq_auth( gc );
}
}
}
@@ -350,7 +350,7 @@ static xt_status jabber_pkt_features( struct xt_node *node, gpointer data )
to be XMPP 1.0 compliant! */
else if( !( jd->flags & JFLAG_AUTHENTICATED ) && sasl_supported( gc ) )
{
- if( !jabber_start_iq_auth( gc ) )
+ if( !jabber_init_iq_auth( gc ) )
return XT_ABORT;
}
@@ -359,7 +359,7 @@ static xt_status jabber_pkt_features( struct xt_node *node, gpointer data )
reply = xt_new_node( "bind", NULL, xt_new_node( "resource", set_getstr( &gc->acc->set, "resource" ), NULL ) );
xt_add_attr( reply, "xmlns", "urn:ietf:params:xml:ns:xmpp-bind" );
reply = jabber_make_packet( "iq", "set", NULL, reply );
- jabber_cache_add( gc, reply );
+ jabber_cache_add( gc, reply, jabber_pkt_bind_sess );
if( !jabber_write_packet( gc, reply ) )
return XT_ABORT;
@@ -372,7 +372,7 @@ static xt_status jabber_pkt_features( struct xt_node *node, gpointer data )
reply = xt_new_node( "session", NULL, NULL );
xt_add_attr( reply, "xmlns", "urn:ietf:params:xml:ns:xmpp-session" );
reply = jabber_make_packet( "iq", "set", NULL, reply );
- jabber_cache_add( gc, reply );
+ jabber_cache_add( gc, reply, jabber_pkt_bind_sess );
if( !jabber_write_packet( gc, reply ) )
return XT_ABORT;