Changeset b556e46 for root_commands.c
- Timestamp:
- 2010-07-09T23:25:07Z (14 years ago)
- Branches:
- master
- Children:
- f3b6764
- Parents:
- c5bff81 (diff), 9a9b520 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
rc5bff81 rb556e46 680 680 static void cmd_rename( irc_t *irc, char **cmd ) 681 681 { 682 irc_user_t *iu ;682 irc_user_t *iu, *old; 683 683 684 684 iu = irc_user_by_name( irc, cmd[1] ); … … 696 696 irc_usermsg( irc, "Nick `%s' is invalid", cmd[2] ); 697 697 } 698 else if( irc_user_by_name( irc, cmd[2] ))698 else if( ( old = irc_user_by_name( irc, cmd[2] ) ) && old != iu ) 699 699 { 700 700 irc_usermsg( irc, "Nick `%s' already exists", cmd[2] );
Note: See TracChangeset
for help on using the changeset viewer.