From e277e80022e9cad3f7a3dbadbc25a6a2da9bf40d Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 20 Apr 2013 23:50:31 +0100 Subject: Add irc_t* argument to all relevant nick_*() functions. --- root_commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'root_commands.c') diff --git a/root_commands.c b/root_commands.c index 77f40060..0bd16163 100644 --- a/root_commands.c +++ b/root_commands.c @@ -701,7 +701,7 @@ static void cmd_add( irc_t *irc, char **cmd ) if( cmd[3] ) { - if( !nick_ok( cmd[3] ) ) + if( !nick_ok( irc, cmd[3] ) ) { irc_rootmsg( irc, "The requested nick `%s' is invalid", cmd[3] ); return; @@ -843,7 +843,7 @@ static void cmd_rename( irc_t *irc, char **cmd ) { irc_rootmsg( irc, "Use /nick to change your own nickname" ); } - else if( !nick_ok( cmd[2] ) ) + else if( !nick_ok( irc, cmd[2] ) ) { irc_rootmsg( irc, "Nick `%s' is invalid", cmd[2] ); } -- cgit v1.2.3