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 /irc_commands.c | |
parent | b4e4b958ac5db7f59f8a21c914b02d8d487de2a4 (diff) | |
parent | 3af70b06b2f0fb0fb41a041f6d86e3711b9eea3f (diff) |
[merge] upstream
Diffstat (limited to 'irc_commands.c')
-rw-r--r-- | irc_commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/irc_commands.c b/irc_commands.c index 75ab4dbd..3bb24fdb 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -31,7 +31,7 @@ static void irc_cmd_pass( irc_t *irc, char **cmd ) { if( global.conf->auth_pass && strcmp( cmd[1], global.conf->auth_pass ) == 0 ) { - irc->status = USTATUS_AUTHORIZED; + irc->status |= USTATUS_AUTHORIZED; irc_check_login( irc ); } else @@ -609,11 +609,11 @@ void irc_exec( irc_t *irc, char *cmd[] ) /* There should be no typo in the next line: */ for( n_arg = 0; cmd[n_arg]; n_arg ++ ); n_arg --; - if( irc_commands[i].flags & IRC_CMD_PRE_LOGIN && irc->status >= USTATUS_LOGGED_IN ) + if( irc_commands[i].flags & IRC_CMD_PRE_LOGIN && irc->status & USTATUS_LOGGED_IN ) { irc_reply( irc, 462, ":Only allowed before logging in" ); } - else if( irc_commands[i].flags & IRC_CMD_LOGGED_IN && irc->status < USTATUS_LOGGED_IN ) + else if( irc_commands[i].flags & IRC_CMD_LOGGED_IN && !( irc->status & USTATUS_LOGGED_IN ) ) { irc_reply( irc, 451, ":Register first" ); } |