Changeset 79e826a for ipc.c


Ignore:
Timestamp:
2006-06-15T12:22:17Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3af70b0, 5898ef8
Parents:
5a5c926
Message:

Converted irc->status to binary flags. (This also fixes auto-save-on-quit
that broke because of USTATUS_SHUTDOWN. :-( )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipc.c

    r5a5c926 r79e826a  
    115115static void ipc_child_cmd_wallops( irc_t *irc, char **cmd )
    116116{
    117         if( irc->status < USTATUS_LOGGED_IN )
     117        if( ! irc->status & USTATUS_LOGGED_IN )
    118118                return;
    119119       
     
    124124static void ipc_child_cmd_lilo( irc_t *irc, char **cmd )
    125125{
    126         if( irc->status < USTATUS_LOGGED_IN )
     126        if( ! irc->status & USTATUS_LOGGED_IN )
    127127                return;
    128128       
     
    133133static void ipc_child_cmd_opermsg( irc_t *irc, char **cmd )
    134134{
    135         if( irc->status < USTATUS_LOGGED_IN )
     135        if( ! irc->status & USTATUS_LOGGED_IN )
    136136                return;
    137137       
     
    154154static void ipc_child_cmd_kill( irc_t *irc, char **cmd )
    155155{
    156         if( irc->status < USTATUS_LOGGED_IN )
     156        if( ! irc->status & USTATUS_LOGGED_IN )
    157157                return;
    158158       
     
    166166static void ipc_child_cmd_hello( irc_t *irc, char **cmd )
    167167{
    168         if( irc->status < USTATUS_LOGGED_IN )
     168        if( ! irc->status & USTATUS_LOGGED_IN )
    169169                ipc_to_master_str( "HELLO\r\n" );
    170170        else
Note: See TracChangeset for help on using the changeset viewer.