Changes in protocols/account.c [1783ab6:35987a1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/account.c
r1783ab6 r35987a1 27 27 #include "bitlbee.h" 28 28 #include "account.h" 29 30 static const char* account_protocols_local[] = {31 "gg", NULL32 };33 29 34 30 static char *set_eval_nick_source( set_t *set, char *value ); … … 351 347 void account_on( bee_t *bee, account_t *a ) 352 348 { 353 GHashTableIter nicks;354 gpointer k, v;355 356 349 if( a->ic ) 357 350 { … … 367 360 if( a->ic && !( a->ic->flags & ( OPT_SLOW_LOGIN | OPT_LOGGED_IN ) ) ) 368 361 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 }378 362 } 379 363 … … 481 465 return a->auto_reconnect_delay; 482 466 } 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.