Changeset 4306d8b for protocols/jabber/jabber_util.c
- Timestamp:
- 2007-12-02T16:43:57Z (16 years ago)
- Branches:
- master
- Children:
- 911cc4f
- Parents:
- 9ff5737
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber_util.c
r9ff5737 r4306d8b 179 179 return FALSE; 180 180 } 181 } 182 183 xt_status jabber_cache_handle_packet( struct im_connection *ic, struct xt_node *node ) 184 { 185 struct jabber_data *jd = ic->proto_data; 186 struct jabber_cache_entry *entry; 187 char *s; 188 189 if( ( s = xt_find_attr( node, "id" ) ) == NULL || 190 strncmp( s, jd->cached_id_prefix, strlen( jd->cached_id_prefix ) ) != 0 ) 191 { 192 /* Silently ignore it, without an ID (or a non-cache 193 ID) we don't know how to handle the packet and we 194 probably don't have to. */ 195 return XT_HANDLED; 196 } 197 198 entry = g_hash_table_lookup( jd->node_cache, s ); 199 200 if( entry == NULL ) 201 { 202 imcb_log( ic, "WARNING: Received %s-%s packet with unknown/expired ID %s!", 203 node->name, xt_find_attr( node, "type" ) ? : "(no type)", s ); 204 } 205 else if( entry->func ) 206 { 207 return entry->func( ic, node, entry->node ); 208 } 209 210 return XT_HANDLED; 181 211 } 182 212
Note: See TracChangeset
for help on using the changeset viewer.