Changeset fda194f
- Timestamp:
- 2012-03-19T21:01:50Z (13 years ago)
- Branches:
- master
- Children:
- 4c73ba62
- Parents:
- d18dee42
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.h
rd18dee42 rfda194f 57 57 stuff that matters. */ 58 58 OPER_HACK_IDENTIFY = 0x100, 59 OPER_HACK_IDENTIFY_NOLOAD = 0x01100, 60 OPER_HACK_IDENTIFY_FORCE = 0x02100, 59 61 OPER_HACK_REGISTER = 0x200, 60 62 OPER_HACK_ACCOUNT_ADD = 0x400, 61 OPER_HACK_ANY = 0x 700, /* To check for them all at once. */63 OPER_HACK_ANY = 0x3700, /* To check for them all at once. */ 62 64 } irc_status_t; 63 65 -
irc_commands.c
rd18dee42 rfda194f 448 448 else if( irc->status & OPER_HACK_IDENTIFY ) 449 449 { 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 } 451 462 irc_send_num( irc, 491, ":Trying to identify" ); 452 463 root_command( irc, send_cmd ); -
root_commands.c
rd18dee42 rfda194f 121 121 load = FALSE; 122 122 password = cmd[2]; 123 if( password == NULL ) 124 irc->status |= OPER_HACK_IDENTIFY_NOLOAD; 123 125 } 124 126 else if( strncmp( cmd[1], "-force", 6 ) == 0 ) 125 127 { 126 128 password = cmd[2]; 129 if( password == NULL ) 130 irc->status |= OPER_HACK_IDENTIFY_FORCE; 127 131 } 128 132 else if( irc->b->accounts != NULL )
Note: See TracChangeset
for help on using the changeset viewer.