diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2006-06-16 13:26:51 +0200 | 
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2006-06-16 13:26:51 +0200 | 
| commit | 07e46c92467d0787f1318412186a64cf1c9da562 (patch) | |
| tree | 1d9b346c87146f559e1a07d7d2e97b19ec7ac66b /root_commands.c | |
| parent | b4e4b958ac5db7f59f8a21c914b02d8d487de2a4 (diff) | |
| parent | 3af70b06b2f0fb0fb41a041f6d86e3711b9eea3f (diff) | |
[merge] upstream
Diffstat (limited to 'root_commands.c')
| -rw-r--r-- | root_commands.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/root_commands.c b/root_commands.c index 0e12e9ab..3d3584b3 100644 --- a/root_commands.c +++ b/root_commands.c @@ -162,7 +162,7 @@ static void cmd_register( irc_t *irc, char **cmd )  			break;  		case STORAGE_OK: -			irc->status = USTATUS_IDENTIFIED; +			irc->status |= USTATUS_IDENTIFIED;  			irc_umode_set( irc, "+R", 1 );  			break; @@ -186,7 +186,7 @@ static void cmd_drop( irc_t *irc, char **cmd )  		break;  	case STORAGE_OK:  		irc_setpass( irc, NULL ); -		irc->status = USTATUS_LOGGED_IN; +		irc->status &= ~USTATUS_IDENTIFIED;  		irc_umode_set( irc, "-R", 1 );  		irc_usermsg( irc, "Account `%s' removed", irc->nick );  		break; @@ -200,7 +200,7 @@ static void cmd_account( irc_t *irc, char **cmd )  {  	account_t *a; -	if( global.conf->authmode == AUTHMODE_REGISTERED && irc->status < USTATUS_IDENTIFIED ) +	if( global.conf->authmode == AUTHMODE_REGISTERED && !( irc->status & USTATUS_IDENTIFIED ) )  	{  		irc_usermsg( irc, "This server only accepts registered users" );  		return; | 
