Changeset 5e98ff0


Ignore:
Timestamp:
2010-07-17T14:23:20Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6f0ea57
Parents:
6ef19f7
Message:

Free a user structure when using the remove command. This disappeared while
most IM modules don't call back when a removal was successful.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r6ef19f7 r5e98ff0  
    644644        bu->ic->acc->prpl->remove_buddy( bu->ic, bu->handle, NULL );
    645645        nick_del( bu );
    646         //TODO(wilmer): bee_user_free() and/or let the IM mod do it? irc_user_free( irc, cmd[1] );
     646        if( g_slist_find( irc->users, iu ) )
     647                bee_user_free( irc->b, bu );
    647648       
    648649        irc_usermsg( irc, "Buddy `%s' (nick %s) removed from contact list", s, cmd[1] );
Note: See TracChangeset for help on using the changeset viewer.