- Timestamp:
- 2010-04-11T22:49:32Z (15 years ago)
- Branches:
- master
- Children:
- 6c56f42
- Parents:
- d986463
- Location:
- protocols
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/bee.h
rd986463 reabc9d2 85 85 /* bee_user.c */ 86 86 bee_user_t *bee_user_new( bee_t *bee, struct im_connection *ic, const char *handle ); 87 int bee_user_free( bee_t *bee, struct im_connection *ic, const char *handle);87 int bee_user_free( bee_t *bee, bee_user_t *bu ); 88 88 bee_user_t *bee_user_by_handle( bee_t *bee, struct im_connection *ic, const char *handle ); 89 89 int bee_user_msg( bee_t *bee, bee_user_t *bu, const char *msg, int flags ); -
protocols/bee_user.c
rd986463 reabc9d2 46 46 } 47 47 48 int bee_user_free( bee_t *bee, struct im_connection *ic, const char *handle)48 int bee_user_free( bee_t *bee, bee_user_t *bu ) 49 49 { 50 bee_user_t *bu; 51 52 if( ( bu = bee_user_by_handle( bee, ic, handle ) ) == NULL ) 50 if( !bu ) 53 51 return 0; 54 52 -
protocols/nogaim.c
rd986463 reabc9d2 327 327 ic->away = NULL; 328 328 329 for( l = bee->users; l; l = l->next)329 for( l = bee->users; l; ) 330 330 { 331 331 bee_user_t *bu = l->data; 332 GSList *next = l->next; 332 333 333 334 if( bu->ic == ic ) 334 bee_user_free( bee, ic, bu->handle ); 335 bee_user_free( bee, bu ); 336 337 l = next; 335 338 } 336 339 … … 403 406 void imcb_remove_buddy( struct im_connection *ic, const char *handle, char *group ) 404 407 { 405 bee_user_free( ic->bee, ic, handle);408 bee_user_free( ic->bee, bee_user_by_handle( ic->bee, ic, handle ) ); 406 409 } 407 410
Note: See TracChangeset
for help on using the changeset viewer.