Changeset 9a9b520 for root_commands.c
- Timestamp:
- 2010-07-08T22:31:01Z (14 years ago)
- Branches:
- master
- Children:
- b556e46, f3b6764
- Parents:
- 69b896b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r69b896b r9a9b520 662 662 static void cmd_rename( irc_t *irc, char **cmd ) 663 663 { 664 irc_user_t *iu ;664 irc_user_t *iu, *old; 665 665 666 666 iu = irc_user_by_name( irc, cmd[1] ); … … 678 678 irc_usermsg( irc, "Nick `%s' is invalid", cmd[2] ); 679 679 } 680 else if( irc_user_by_name( irc, cmd[2] ))680 else if( ( old = irc_user_by_name( irc, cmd[2] ) ) && old != iu ) 681 681 { 682 682 irc_usermsg( irc, "Nick `%s' already exists", cmd[2] );
Note: See TracChangeset
for help on using the changeset viewer.