Changes in irc_commands.c [b4e4b95:3af70b0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
rb4e4b95 r3af70b0 32 32 if( global.conf->auth_pass && strcmp( cmd[1], global.conf->auth_pass ) == 0 ) 33 33 { 34 irc->status = USTATUS_AUTHORIZED;34 irc->status |= USTATUS_AUTHORIZED; 35 35 irc_check_login( irc ); 36 36 } … … 321 321 { 322 322 user_t *u; 323 char buff[IRC_MAX_LINE] ;323 char buff[IRC_MAX_LINE], *s; 324 324 int lenleft, i; 325 325 … … 610 610 for( n_arg = 0; cmd[n_arg]; n_arg ++ ); n_arg --; 611 611 612 if( irc_commands[i].flags & IRC_CMD_PRE_LOGIN && irc->status >=USTATUS_LOGGED_IN )612 if( irc_commands[i].flags & IRC_CMD_PRE_LOGIN && irc->status & USTATUS_LOGGED_IN ) 613 613 { 614 614 irc_reply( irc, 462, ":Only allowed before logging in" ); 615 615 } 616 else if( irc_commands[i].flags & IRC_CMD_LOGGED_IN && irc->status < USTATUS_LOGGED_IN)616 else if( irc_commands[i].flags & IRC_CMD_LOGGED_IN && !( irc->status & USTATUS_LOGGED_IN ) ) 617 617 { 618 618 irc_reply( irc, 451, ":Register first" );
Note: See TracChangeset
for help on using the changeset viewer.