Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    rc121f89 r3af70b0  
    142142                irc_umode_set( irc, "+R", 1 );
    143143                break;
    144         case STORAGE_OTHER_ERROR:
    145144        default:
    146                 irc_usermsg( irc, "Unknown error while loading configuration" );
     145                irc_usermsg( irc, "Something very weird happened" );
    147146                break;
    148147        }
     
    164163                       
    165164                case STORAGE_OK:
    166                         irc->status = USTATUS_IDENTIFIED;
     165                        irc->status |= USTATUS_IDENTIFIED;
    167166                        irc_umode_set( irc, "+R", 1 );
    168167                        break;
     
    188187        case STORAGE_OK:
    189188                irc_setpass( irc, NULL );
    190                 irc->status = USTATUS_LOGGED_IN;
     189                irc->status &= ~USTATUS_IDENTIFIED;
    191190                irc_umode_set( irc, "-R", 1 );
    192191                irc_usermsg( irc, "Account `%s' removed", irc->nick );
     
    202201        account_t *a;
    203202       
    204         if( global.conf->authmode == AUTHMODE_REGISTERED && irc->status < USTATUS_IDENTIFIED )
     203        if( global.conf->authmode == AUTHMODE_REGISTERED && !( irc->status & USTATUS_IDENTIFIED ) )
    205204        {
    206205                irc_usermsg( irc, "This server only accepts registered users" );
Note: See TracChangeset for help on using the changeset viewer.