Changeset 79e826a for root_commands.c


Ignore:
Timestamp:
2006-06-15T12:22:17Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3af70b0, 5898ef8
Parents:
5a5c926
Message:

Converted irc->status to binary flags. (This also fixes auto-save-on-quit
that broke because of USTATUS_SHUTDOWN. :-( )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r5a5c926 r79e826a  
    163163                       
    164164                case STORAGE_OK:
    165                         irc->status = USTATUS_IDENTIFIED;
     165                        irc->status |= USTATUS_IDENTIFIED;
    166166                        irc_umode_set( irc, "+R", 1 );
    167167                        break;
     
    187187        case STORAGE_OK:
    188188                irc_setpass( irc, NULL );
    189                 irc->status = USTATUS_LOGGED_IN;
     189                irc->status &= ~USTATUS_IDENTIFIED;
    190190                irc_umode_set( irc, "-R", 1 );
    191191                irc_usermsg( irc, "Account `%s' removed", irc->nick );
     
    201201        account_t *a;
    202202       
    203         if( global.conf->authmode == AUTHMODE_REGISTERED && irc->status < USTATUS_IDENTIFIED )
     203        if( global.conf->authmode == AUTHMODE_REGISTERED && ! irc->status & USTATUS_IDENTIFIED )
    204204        {
    205205                irc_usermsg( irc, "This server only accepts registered users" );
Note: See TracChangeset for help on using the changeset viewer.