Changes in protocols/account.c [35987a1:1783ab6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/account.c
r35987a1 r1783ab6 27 27 #include "bitlbee.h" 28 28 #include "account.h" 29 30 static const char* account_protocols_local[] = { 31 "gg", NULL 32 }; 29 33 30 34 static char *set_eval_nick_source( set_t *set, char *value ); … … 347 351 void account_on( bee_t *bee, account_t *a ) 348 352 { 353 GHashTableIter nicks; 354 gpointer k, v; 355 349 356 if( a->ic ) 350 357 { … … 360 367 if( a->ic && !( a->ic->flags & ( OPT_SLOW_LOGIN | OPT_LOGGED_IN ) ) ) 361 368 a->ic->keepalive = b_timeout_add( 120000, account_on_timeout, a->ic ); 369 370 if( a->flags & ACC_FLAG_LOCAL ) 371 { 372 g_hash_table_iter_init(&nicks, a->nicks); 373 while( g_hash_table_iter_next( &nicks, &k, &v ) ) 374 { 375 a->prpl->add_buddy( a->ic, (char*) k, NULL ); 376 } 377 } 362 378 } 363 379 … … 465 481 return a->auto_reconnect_delay; 466 482 } 483 484 int protocol_account_islocal( const char* protocol ) 485 { 486 const char** p = account_protocols_local; 487 do { 488 if( strcmp( *p, protocol ) == 0 ) 489 return 1; 490 } while( *( ++p ) ); 491 return 0; 492 }
Note: See TracChangeset
for help on using the changeset viewer.