diff options
-rw-r--r-- | root_commands.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/root_commands.c b/root_commands.c index f4bb4b82..e9b0e0ab 100644 --- a/root_commands.c +++ b/root_commands.c @@ -643,7 +643,8 @@ static void cmd_remove( irc_t *irc, char **cmd ) bu->ic->acc->prpl->remove_buddy( bu->ic, bu->handle, NULL ); nick_del( bu ); - //TODO(wilmer): bee_user_free() and/or let the IM mod do it? irc_user_free( irc, cmd[1] ); + if( g_slist_find( irc->users, iu ) ) + bee_user_free( irc->b, bu ); irc_usermsg( irc, "Buddy `%s' (nick %s) removed from contact list", s, cmd[1] ); g_free( s ); |