Changeset 9a9b520 for root_commands.c


Ignore:
Timestamp:
2010-07-08T22:31:01Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b556e46, f3b6764
Parents:
69b896b
Message:

Allow nick changes if they're only different in capitalisation, fixed
faulty responses in the NICK command, and fixing crash bug in nick changes
before finishing login.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r69b896b r9a9b520  
    662662static void cmd_rename( irc_t *irc, char **cmd )
    663663{
    664         irc_user_t *iu;
     664        irc_user_t *iu, *old;
    665665       
    666666        iu = irc_user_by_name( irc, cmd[1] );
     
    678678                irc_usermsg( irc, "Nick `%s' is invalid", cmd[2] );
    679679        }
    680         else if( irc_user_by_name( irc, cmd[2] ) )
     680        else if( ( old = irc_user_by_name( irc, cmd[2] ) ) && old != iu )
    681681        {
    682682                irc_usermsg( irc, "Nick `%s' already exists", cmd[2] );
Note: See TracChangeset for help on using the changeset viewer.