diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-11 13:21:59 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-11 13:21:59 +0100 |
commit | b1f818bcbd50eccd416127ed68346616295f54cd (patch) | |
tree | 39dfc31096d34d5426322571c10783b8739fcc8b /root_commands.c | |
parent | 133cdffff000275c3968b38e5e4cdde02dc400d3 (diff) |
Use bee_user structs in all nick_* functions. Prepare for a nick_get() with
more flexible nickname generation.
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/root_commands.c b/root_commands.c index d19feae0..f4bb4b82 100644 --- a/root_commands.c +++ b/root_commands.c @@ -614,7 +614,7 @@ static void cmd_add( irc_t *irc, char **cmd ) } else { - nick_set( a, cmd[2], cmd[3] ); + nick_set_raw( a, cmd[2], cmd[3] ); } } @@ -642,7 +642,7 @@ static void cmd_remove( irc_t *irc, char **cmd ) s = g_strdup( bu->handle ); bu->ic->acc->prpl->remove_buddy( bu->ic, bu->handle, NULL ); - nick_del( bu->ic->acc, bu->handle ); + nick_del( bu ); //TODO(wilmer): bee_user_free() and/or let the IM mod do it? irc_user_free( irc, cmd[1] ); irc_usermsg( irc, "Buddy `%s' (nick %s) removed from contact list", s, cmd[1] ); @@ -727,7 +727,7 @@ static void cmd_rename( irc_t *irc, char **cmd ) } else if( iu->bu ) { - nick_set( iu->bu->ic->acc, iu->bu->handle, cmd[2] ); + nick_set( iu->bu, cmd[2] ); } irc_usermsg( irc, "Nick successfully changed" ); |