Changeset 38ee021


Ignore:
Timestamp:
2010-03-28T03:03:57Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
10a96f4
Parents:
3923003
Message:

Remove deleted user from channels too!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_user.c

    r3923003 r38ee021  
    5050{
    5151        irc_user_t *iu;
     52        GSList *l;
    5253       
    5354        if( !( iu = irc_user_by_name( irc, nick ) ) )
     
    5657        irc->users = g_slist_remove( irc->users, iu );
    5758        g_hash_table_remove( irc->nick_user_hash, iu->key );
     59       
     60        for( l = irc->channels; l; l = l->next )
     61                irc_channel_del_user( (irc_channel_t*) l->data, iu );
    5862       
    5963        g_free( iu->nick );
Note: See TracChangeset for help on using the changeset viewer.