Changes in root_commands.c [c121f89:3af70b0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
rc121f89 r3af70b0 142 142 irc_umode_set( irc, "+R", 1 ); 143 143 break; 144 case STORAGE_OTHER_ERROR:145 144 default: 146 irc_usermsg( irc, " Unknown error while loading configuration" );145 irc_usermsg( irc, "Something very weird happened" ); 147 146 break; 148 147 } … … 164 163 165 164 case STORAGE_OK: 166 irc->status = USTATUS_IDENTIFIED;165 irc->status |= USTATUS_IDENTIFIED; 167 166 irc_umode_set( irc, "+R", 1 ); 168 167 break; … … 188 187 case STORAGE_OK: 189 188 irc_setpass( irc, NULL ); 190 irc->status = USTATUS_LOGGED_IN;189 irc->status &= ~USTATUS_IDENTIFIED; 191 190 irc_umode_set( irc, "-R", 1 ); 192 191 irc_usermsg( irc, "Account `%s' removed", irc->nick ); … … 202 201 account_t *a; 203 202 204 if( global.conf->authmode == AUTHMODE_REGISTERED && irc->status < USTATUS_IDENTIFIED)203 if( global.conf->authmode == AUTHMODE_REGISTERED && !( irc->status & USTATUS_IDENTIFIED ) ) 205 204 { 206 205 irc_usermsg( irc, "This server only accepts registered users" );
Note: See TracChangeset
for help on using the changeset viewer.