diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2013-06-16 13:42:39 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2013-06-16 13:42:39 +0100 |
commit | 1a2c1c0c413ea1124544cdc9a24a0d2faa5dbb8f (patch) | |
tree | d3ae6d42d29b7b226abb017ab5dfb07536d2493b /root_commands.c | |
parent | ab19567e25a35beb23f922303d1f60ed13228356 (diff) | |
parent | 5cb946132871ef97fe9eabacafa62f1064d80423 (diff) |
Merging utf8-nicks branch. This adds a utf8_nicks setting which removes the
ASCII restriction on contact nicknames. Use at your own risk!
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 4 |
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] ); } |