- Timestamp:
- 2014-02-28T23:17:28Z (11 years ago)
- Branches:
- master
- Children:
- b4b8f1e
- Parents:
- 2e815e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 );
Note: See TracChangeset
for help on using the changeset viewer.