Changeset 3558fea


Ignore:
Timestamp:
2011-12-29T20:18:12Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
59cd92b
Parents:
f1849a8
Message:

When changing nicks and the change is case-only (or no change *at all*),
do not reset identify status. Bug #880.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    rf1849a8 r3558fea  
    8787        else if( irc->status & USTATUS_LOGGED_IN )
    8888        {
    89                 if( irc->status & USTATUS_IDENTIFIED )
     89                /* WATCH OUT: iu from the first if reused here to check if the
     90                   new nickname is the same (other than case, possibly). If it
     91                   is, no need to reset identify-status. */
     92                if( ( irc->status & USTATUS_IDENTIFIED ) && iu != irc->user )
    9093                {
    9194                        irc_setpass( irc, NULL );
     
    98101                }
    99102               
    100                 irc_user_set_nick( irc->user, cmd[1] );
     103                if( strcmp( cmd[1], irc->user->nick ) != 0 )
     104                        irc_user_set_nick( irc->user, cmd[1] );
    101105        }
    102106        else
Note: See TracChangeset for help on using the changeset viewer.