Changeset c22c210


Ignore:
Timestamp:
2006-01-14T17:48:29Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
edf9657
Parents:
0298d11
Message:

Checks if there's an OPER password set before checking it, to prevent crashes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    r0298d11 rc22c210  
    107107static int irc_cmd_oper( irc_t *irc, char **cmd )
    108108{
    109         if( strcmp( cmd[2], global.conf->oper_pass ) == 0 )
     109        if( global.conf->oper_pass && strcmp( cmd[2], global.conf->oper_pass ) == 0 )
    110110                irc_umode_set( irc, "+o", 1 );
    111111        // else
Note: See TracChangeset for help on using the changeset viewer.