diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-08 18:11:16 +0200 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-08 18:11:16 +0200 | 
| commit | 038d17f834219505cbbdae469b2b150117467dd0 (patch) | |
| tree | ee752d2e307c3e82931337e85d79d23707378f1f /protocols/jabber/iq.c | |
| parent | 36e9f62a6e6fdb1217b3b819320ac5a94025c448 (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/iq.c')
| -rw-r--r-- | protocols/jabber/iq.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/protocols/jabber/iq.c b/protocols/jabber/iq.c index 4739d6ab..ae4ed099 100644 --- a/protocols/jabber/iq.c +++ b/protocols/jabber/iq.c @@ -40,7 +40,7 @@ xt_status jabber_pkt_iq( struct xt_node *node, gpointer data )  	xmlns = xt_find_attr( query, "xmlns" );  	if( ( s = xt_find_attr( node, "id" ) ) ) -		orig = jabber_packet_from_cache( gc, s ); +		orig = jabber_cache_get( gc, s );  	if( strcmp( type, "result" ) == 0 && xmlns && strcmp( xmlns, "jabber:iq:auth" ) == 0 )  	{ @@ -84,7 +84,7 @@ xt_status jabber_pkt_iq( struct xt_node *node, gpointer data )  		}  		reply = jabber_make_packet( "iq", "set", NULL, reply ); -		jabber_cache_packet( gc, reply ); +		jabber_cache_add( gc, reply );  		st = jabber_write_packet( gc, reply );  		return st ? XT_HANDLED : XT_ABORT; | 
