- Timestamp:
- 2006-06-15T12:46:31Z (18 years ago)
- Branches:
- master
- Children:
- 10efa91
- Parents:
- c121f89 (diff), 79e826a (diff), 3af70b0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
rc121f89 r5898ef8 177 177 } 178 178 179 irc->status = USTATUS_SHUTDOWN;179 irc->status |= USTATUS_SHUTDOWN; 180 180 if( irc->sendbuffer && !immed ) 181 181 { … … 211 211 log_message( LOGLVL_INFO, "Destroying connection with fd %d", irc->fd ); 212 212 213 if( irc->status >=USTATUS_IDENTIFIED && set_getint( irc, "save_on_quit" ) )213 if( irc->status & USTATUS_IDENTIFIED && set_getint( irc, "save_on_quit" ) ) 214 214 if( storage_save( irc, TRUE ) != STORAGE_OK ) 215 215 irc_usermsg( irc, "Error while saving settings!" ); … … 577 577 578 578 /* Don't try to write anything new anymore when shutting down. */ 579 if( irc->status ==USTATUS_SHUTDOWN )579 if( irc->status & USTATUS_SHUTDOWN ) 580 580 return; 581 581 … … 707 707 if( irc->user && irc->nick ) 708 708 { 709 if( global.conf->authmode == AUTHMODE_CLOSED && irc->status < USTATUS_AUTHORIZED)709 if( global.conf->authmode == AUTHMODE_CLOSED && !( irc->status & USTATUS_AUTHORIZED ) ) 710 710 { 711 711 irc_reply( irc, 464, ":This server is password-protected." ); … … 764 764 ipc_to_master_str( "CLIENT %s %s :%s\r\n", irc->host, irc->nick, irc->realname ); 765 765 766 irc->status = USTATUS_LOGGED_IN;766 irc->status |= USTATUS_LOGGED_IN; 767 767 } 768 768 … … 1187 1187 int rv = 0; 1188 1188 1189 if( irc->status < USTATUS_LOGGED_IN)1189 if( !( irc->status & USTATUS_LOGGED_IN ) ) 1190 1190 { 1191 1191 if( gettime() > ( irc->last_pong + IRC_LOGIN_TIMEOUT ) )
Note: See TracChangeset
for help on using the changeset viewer.