Changeset 35987a1
- Timestamp:
- 2014-02-28T23:17:28Z (11 years ago)
- Branches:
- master
- Children:
- b4b8f1e
- Parents:
- 2e815e5
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.h
r2e815e5 r35987a1 60 60 OPER_HACK_IDENTIFY_FORCE = 0x02100, 61 61 OPER_HACK_REGISTER = 0x200, 62 OPER_HACK_ACCOUNT_ ADD = 0x400,62 OPER_HACK_ACCOUNT_PASSWORD = 0x400, 63 63 OPER_HACK_ANY = 0x3700, /* To check for them all at once. */ 64 64 -
irc_commands.c
r2e815e5 r35987a1 433 433 /* /OPER can now also be used to enter IM/identify passwords without 434 434 echoing. It's a hack but the extra password security is worth it. */ 435 if( irc->status & OPER_HACK_ACCOUNT_ ADD )435 if( irc->status & OPER_HACK_ACCOUNT_PASSWORD ) 436 436 { 437 437 account_t *a; -
protocols/account.c
r2e815e5 r35987a1 154 154 else if( strcmp( set->key, "password" ) == 0 ) 155 155 { 156 /* set -del should be allowed now, but I don't want to have any 157 NULL pointers to have to deal with. */ 158 if( !value ) 159 value = ""; 156 /* set -del allows /oper to be used to change the password or, 157 iff oauth is enabled, reset the oauth credential magic. 158 */ 159 if( !value ) { 160 if ( set_getbool( &(acc->set), "oauth" ) ) { 161 value = ""; 162 } else { 163 value = PASSWORD_PENDING; 164 ((irc_t *)acc->bee->ui_data)->status |= OPER_HACK_ACCOUNT_PASSWORD; 165 irc_rootmsg((irc_t *)acc->bee->ui_data, "You may now use /OPER to set the password"); 166 } 167 } 160 168 161 169 g_free( acc->pass ); -
root_commands.c
r2e815e5 r35987a1 422 422 } 423 423 424 irc->status |= OPER_HACK_ACCOUNT_ ADD;424 irc->status |= OPER_HACK_ACCOUNT_PASSWORD; 425 425 } 426 426
Note: See TracChangeset
for help on using the changeset viewer.