aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-11 13:21:59 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-11 13:21:59 +0100
commitb1f818bcbd50eccd416127ed68346616295f54cd (patch)
tree39dfc31096d34d5426322571c10783b8739fcc8b /irc_im.c
parent133cdffff000275c3968b38e5e4cdde02dc400d3 (diff)
Use bee_user structs in all nick_* functions. Prepare for a nick_get() with
more flexible nickname generation.
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/irc_im.c b/irc_im.c
index d7906cd5..48d2ada4 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -49,7 +49,7 @@ static gboolean bee_irc_user_new( bee_t *bee, bee_user_t *bu )
char nick[MAX_NICK_LENGTH+1], *s;
memset( nick, 0, MAX_NICK_LENGTH + 1 );
- strcpy( nick, nick_get( bu->ic->acc, bu->handle ) );
+ strcpy( nick, nick_get( bu ) );
bu->ui_data = iu = irc_user_new( irc, nick );
iu->bu = bu;
@@ -293,7 +293,7 @@ static gboolean bee_irc_user_nick_hint( bee_t *bee, bee_user_t *bu, const char *
/* Ignore if the user is visible already. */
return TRUE;
- if( nick_saved( bu->ic->acc, bu->handle ) )
+ if( nick_saved( bu ) )
/* The user already assigned a nickname to this person. */
return TRUE;
@@ -318,7 +318,7 @@ static gboolean bee_irc_user_nick_hint( bee_t *bee, bee_user_t *bu, const char *
/* Only do this if newnick is different from the current one.
If rejoining a channel, maybe we got this nick already
(and dedupe would only add an underscore. */
- nick_dedupe( bu->ic->acc, bu->handle, newnick );
+ nick_dedupe( bu, newnick );
irc_user_set_nick( iu, newnick );
}