diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-12-05 12:28:07 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-12-05 12:28:07 +0000 |
commit | a429907207d5b8b05463c72a9b8c880ba03ad921 (patch) | |
tree | e04d31c6dc6ee8461d3401cae386ab14167c1f43 /irc_im.c | |
parent | fd65edb3a40d4c73130b0be8dfa08ae8092c6935 (diff) |
rename -del
Diffstat (limited to 'irc_im.c')
-rw-r--r-- | irc_im.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -362,6 +362,24 @@ static gboolean bee_irc_user_nick_update( irc_user_t *iu ) return TRUE; } +void bee_irc_user_nick_reset( irc_user_t *iu ) +{ + bee_user_t *bu = iu->bu; + bee_user_flags_t online; + + if( bu == FALSE ) + return; + + /* In this case, pretend the user is offline. */ + if( ( online = bu->flags & BEE_USER_ONLINE ) ) + bu->flags &= ~BEE_USER_ONLINE; + + nick_del( bu ); + bee_irc_user_nick_update( iu ); + + bu->flags |= online; +} + /* IRC->IM calls */ static gboolean bee_irc_user_privmsg_cb( gpointer data, gint fd, b_input_condition cond ); |