Changes in account.c [58adb7e:b75acf6]
Legend:
- Unmodified
- Added
- Removed
-
account.c
r58adb7e rb75acf6 2 2 * BitlBee -- An IRC to other IM-networks gateway * 3 3 * * 4 * Copyright 2002-20 10Wilmer van der Gaast and others *4 * Copyright 2002-2004 Wilmer van der Gaast and others * 5 5 \********************************************************************/ 6 6 … … 69 69 prpl->init( a ); 70 70 71 s = set_add( &a->set, "away", NULL, set_eval_account, a ); 72 s->flags |= SET_NULL_OK; 73 74 if( a->flags & ACC_FLAG_STATUS_MESSAGE ) 75 { 76 s = set_add( &a->set, "status", NULL, set_eval_account, a ); 77 s->flags |= SET_NULL_OK; 78 } 79 80 return a; 71 return( a ); 81 72 } 82 73 … … 130 121 131 122 acc->auto_connect = bool2int( value ); 132 return value;133 }134 else if( strcmp( set->key, "away" ) == 0 ||135 strcmp( set->key, "status" ) == 0 )136 {137 if( acc->ic && acc->ic->flags & OPT_LOGGED_IN )138 {139 /* If we're currently on-line, set the var now already140 (bit of a hack) and send an update. */141 g_free( set->value );142 set->value = g_strdup( value );143 144 imc_away_send_update( acc->ic );145 }146 147 123 return value; 148 124 } … … 291 267 p->max = 86400; 292 268 293 /* Format: /[0-9]+([*+][0-9]+(<[0-9+]) ?)?/ */269 /* Format: /[0-9]+([*+][0-9]+(<[0-9+]))/ */ 294 270 while( *value && isdigit( *value ) ) 295 271 p->start = p->start * 10 + *value++ - '0';
Note: See TracChangeset
for help on using the changeset viewer.