- Timestamp:
- 2010-06-03T10:41:03Z (14 years ago)
- Branches:
- master
- Children:
- 814aa52
- Parents:
- 3f81999 (diff), f9928cb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
account.c
r3f81999 r5f8ab6a9 2 2 * BitlBee -- An IRC to other IM-networks gateway * 3 3 * * 4 * Copyright 2002-20 04Wilmer van der Gaast and others *4 * Copyright 2002-2010 Wilmer van der Gaast and others * 5 5 \********************************************************************/ 6 6 … … 27 27 #include "bitlbee.h" 28 28 #include "account.h" 29 #include "chat.h" 29 30 30 31 account_t *account_add( irc_t *irc, struct prpl *prpl, char *user, char *pass ) … … 54 55 s = set_add( &a->set, "auto_reconnect", "true", set_eval_bool, a ); 55 56 57 s = set_add( &a->set, "nick_source", "handle", NULL, a ); 58 56 59 s = set_add( &a->set, "password", NULL, set_eval_account, a ); 57 60 s->flags |= ACC_SET_NOSAVE | SET_NULL_OK; … … 68 71 prpl->init( a ); 69 72 70 return( a ); 73 s = set_add( &a->set, "away", NULL, set_eval_account, a ); 74 s->flags |= SET_NULL_OK; 75 76 if( a->flags & ACC_FLAG_STATUS_MESSAGE ) 77 { 78 s = set_add( &a->set, "status", NULL, set_eval_account, a ); 79 s->flags |= SET_NULL_OK; 80 } 81 82 return a; 71 83 } 72 84 … … 120 132 121 133 acc->auto_connect = bool2int( value ); 134 return value; 135 } 136 else if( strcmp( set->key, "away" ) == 0 || 137 strcmp( set->key, "status" ) == 0 ) 138 { 139 if( acc->ic && acc->ic->flags & OPT_LOGGED_IN ) 140 { 141 /* If we're currently on-line, set the var now already 142 (bit of a hack) and send an update. */ 143 g_free( set->value ); 144 set->value = g_strdup( value ); 145 146 imc_away_send_update( acc->ic ); 147 } 148 122 149 return value; 123 150 } … … 266 293 p->max = 86400; 267 294 268 /* Format: /[0-9]+([*+][0-9]+(<[0-9+]) )/ */295 /* Format: /[0-9]+([*+][0-9]+(<[0-9+])?)?/ */ 269 296 while( *value && isdigit( *value ) ) 270 297 p->start = p->start * 10 + *value++ - '0';
Note: See TracChangeset
for help on using the changeset viewer.