Changeset 5898ef8 for root_commands.c


Ignore:
Timestamp:
2006-06-15T12:46:31Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
10efa91
Parents:
c121f89 (diff), 79e826a (diff), 3af70b0 (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.
Message:

xml_save(), decent error handling and merging fixed autosaving.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    rc121f89 r5898ef8  
    164164                       
    165165                case STORAGE_OK:
    166                         irc->status = USTATUS_IDENTIFIED;
     166                        irc->status |= USTATUS_IDENTIFIED;
    167167                        irc_umode_set( irc, "+R", 1 );
    168168                        break;
     
    188188        case STORAGE_OK:
    189189                irc_setpass( irc, NULL );
    190                 irc->status = USTATUS_LOGGED_IN;
     190                irc->status &= ~USTATUS_IDENTIFIED;
    191191                irc_umode_set( irc, "-R", 1 );
    192192                irc_usermsg( irc, "Account `%s' removed", irc->nick );
     
    202202        account_t *a;
    203203       
    204         if( global.conf->authmode == AUTHMODE_REGISTERED && irc->status < USTATUS_IDENTIFIED )
     204        if( global.conf->authmode == AUTHMODE_REGISTERED && !( irc->status & USTATUS_IDENTIFIED ) )
    205205        {
    206206                irc_usermsg( irc, "This server only accepts registered users" );
Note: See TracChangeset for help on using the changeset viewer.