Changeset fda194f for irc_commands.c


Ignore:
Timestamp:
2012-03-19T21:01:50Z (7 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4c73ba62
Parents:
d18dee42
Message:

Allow identify -noload/-force without typing a password. (/OPER)
Patch from trac3r, bug #814.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    rd18dee42 rfda194f  
    448448        else if( irc->status & OPER_HACK_IDENTIFY )
    449449        {
    450                 char *send_cmd[] = { "identify", password, NULL };
     450                char *send_cmd[] = { "identify", password, NULL, NULL };
     451                irc->status &= ~OPER_HACK_IDENTIFY;
     452                if( irc->status & OPER_HACK_IDENTIFY_NOLOAD )
     453                {
     454                        send_cmd[1] = "-noload";
     455                        send_cmd[2] = password;
     456                }
     457                else if( irc->status & OPER_HACK_IDENTIFY_FORCE )
     458                {
     459                        send_cmd[1] = "-force";
     460                        send_cmd[2] = password;
     461                }
    451462                irc_send_num( irc, 491, ":Trying to identify" );
    452463                root_command( irc, send_cmd );
Note: See TracChangeset for help on using the changeset viewer.