Mercurial > pidgin
comparison libpurple/protocols/jabber/iq.c @ 25661:43c41aee8fcb
These checks are redundant; id is guaranteed to be something above
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Tue, 10 Feb 2009 06:15:27 +0000 |
parents | af351471ec5a |
children | ba2b63988b3c |
comparison
equal
deleted
inserted
replaced
25660:751df82b78e7 | 25661:43c41aee8fcb |
---|---|
350 return; | 350 return; |
351 } | 351 } |
352 | 352 |
353 /* First, lets see if a special callback got registered */ | 353 /* First, lets see if a special callback got registered */ |
354 if(type == JABBER_IQ_RESULT || type == JABBER_IQ_ERROR) { | 354 if(type == JABBER_IQ_RESULT || type == JABBER_IQ_ERROR) { |
355 if(id && *id && (jcd = g_hash_table_lookup(js->iq_callbacks, id))) { | 355 if(jcd = g_hash_table_lookup(js->iq_callbacks, id)) { |
356 jcd->callback(js, packet, jcd->data); | 356 jcd->callback(js, packet, jcd->data); |
357 jabber_iq_remove_callback_by_id(js, id); | 357 jabber_iq_remove_callback_by_id(js, id); |
358 return; | 358 return; |
359 } | 359 } |
360 } | 360 } |