Changeset eabc9d2
- Timestamp:
- 2010-04-11T22:49:32Z (15 years ago)
- Branches:
- master
- Children:
- 6c56f42
- Parents:
- d986463
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
rd986463 reabc9d2 210 210 211 211 while( irc->users ) 212 { 213 irc_user_t *iu = irc->users->data; 214 irc_user_free( irc, iu->nick ); 215 } 212 irc_user_free( irc, (irc_user_t *) irc->users->data ); 216 213 217 214 while( irc->channels ) -
irc.h
rd986463 reabc9d2 204 204 /* irc_user.c */ 205 205 irc_user_t *irc_user_new( irc_t *irc, const char *nick ); 206 int irc_user_free( irc_t *irc, const char *nick);206 int irc_user_free( irc_t *irc, irc_user_t *iu ); 207 207 irc_user_t *irc_user_by_name( irc_t *irc, const char *nick ); 208 208 int irc_user_set_nick( irc_user_t *iu, const char *new ); -
irc_im.c
rd986463 reabc9d2 74 74 static gboolean bee_irc_user_free( bee_t *bee, bee_user_t *bu ) 75 75 { 76 return irc_user_free( bee->ui_data, bu->ui_data );76 return irc_user_free( bee->ui_data, (irc_user_t *) bu->ui_data ); 77 77 } 78 78 -
irc_user.c
rd986463 reabc9d2 47 47 } 48 48 49 int irc_user_free( irc_t *irc, const char *nick)49 int irc_user_free( irc_t *irc, irc_user_t *iu ) 50 50 { 51 irc_user_t *iu;52 51 GSList *l; 53 52 54 if( ! ( iu = irc_user_by_name( irc, nick ) ))53 if( !iu ) 55 54 return 0; 56 55 -
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 -
root_commands.c
rd986463 reabc9d2 633 633 bu->ic->acc->prpl->remove_buddy( bu->ic, bu->handle, NULL ); 634 634 nick_del( bu->ic->acc, bu->handle ); 635 irc_user_free( irc, cmd[1] );635 //TODO(wilmer): bee_user_free() and/or let the IM mod do it? irc_user_free( irc, cmd[1] ); 636 636 637 637 irc_usermsg( irc, "Buddy `%s' (nick %s) removed from contact list", s, cmd[1] );
Note: See TracChangeset
for help on using the changeset viewer.