aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/io.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-10-08 18:11:16 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-10-08 18:11:16 +0200
commit038d17f834219505cbbdae469b2b150117467dd0 (patch)
treeee752d2e307c3e82931337e85d79d23707378f1f /protocols/jabber/io.c
parent36e9f62a6e6fdb1217b3b819320ac5a94025c448 (diff)
Implemented a better node cache using a GLib hash, and preparing to add
event handlers that can be set when sending a packet to handle the reply to this specific packet. This should allow me to make the iq handler a lot cleaner.
Diffstat (limited to 'protocols/jabber/io.c')
-rw-r--r--protocols/jabber/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c
index 73173dbc..c6ad68e0 100644
--- a/protocols/jabber/io.c
+++ b/protocols/jabber/io.c
@@ -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_packet( gc, reply );
+ jabber_cache_add( gc, reply );
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_packet( gc, reply );
+ jabber_cache_add( gc, reply );
if( !jabber_write_packet( gc, reply ) )
return XT_ABORT;