aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-12-05 12:28:07 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-12-05 12:28:07 +0000
commita429907207d5b8b05463c72a9b8c880ba03ad921 (patch)
treee04d31c6dc6ee8461d3401cae386ab14167c1f43 /irc_im.c
parentfd65edb3a40d4c73130b0be8dfa08ae8092c6935 (diff)
rename -del
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/irc_im.c b/irc_im.c
index 40264b49..b0cd3bdf 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -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 );