Changeset 9a9b520 for irc_user.c


Ignore:
Timestamp:
2010-07-08T22:31:01Z (14 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
  • irc_user.c

    r69b896b r9a9b520  
    120120{
    121121        irc_t *irc = iu->irc;
     122        irc_user_t *new_iu;
    122123        char key[strlen(new)+1];
    123124        GSList *cl;
    124125       
    125126        strcpy( key, new );
    126         if( iu == NULL || !nick_lc( key ) || irc_user_by_name( irc, new ) )
     127        if( iu == NULL || !nick_lc( key ) ||
     128            ( ( new_iu = irc_user_by_name( irc, new ) ) && new_iu != iu ) )
    127129                return 0;
    128130       
Note: See TracChangeset for help on using the changeset viewer.