aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2013-04-20 23:50:31 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2013-04-20 23:50:31 +0100
commite277e80022e9cad3f7a3dbadbc25a6a2da9bf40d (patch)
treed5b01e4edfecc2f002d2de1b89bbef37d4e47694 /root_commands.c
parentdd95ce431b5c85eb6d74e501a7796e8a6016ec70 (diff)
Add irc_t* argument to all relevant nick_*() functions.
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c4
1 files changed, 2 insertions, 2 deletions
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] );
}