Changeset 728a981 for protocols/nogaim.c
- Timestamp:
- 2006-03-24T15:16:38Z (19 years ago)
- Branches:
- master
- Children:
- f32d557
- Parents:
- 96ace1b (diff), 9b8a38b (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
-
protocols/nogaim.c
r96ace1b r728a981 14 14 * (except for the function names). 15 15 * 16 * Copyright 2002-200 4 Wilmer van der Gaast <lintux@lintux.cx>16 * Copyright 2002-2006 Wilmer van der Gaast <wilmer@gaast.net> and others 17 17 */ 18 18 … … 39 39 #include <iconv.h> 40 40 41 static char *proto_away_alias[ 7][5] =41 static char *proto_away_alias[8][5] = 42 42 { 43 43 { "Away from computer", "Away", "Extended away", NULL }, … … 47 47 { "On the phone", "Phone", "On phone", NULL }, 48 48 { "Out to lunch", "Lunch", "Food", NULL }, 49 { "Invisible", "Hidden" }, 49 50 { NULL } 50 51 }; … … 305 306 { 306 307 va_list params; 307 char text[1024], buf[1024], acc_id[33];308 char text[1024], buf[1024], *acc_id; 308 309 char *msg; 309 310 account_t *a; … … 330 331 /* If we found one, add the screenname to the acc_id. */ 331 332 if( a ) 332 g_snprintf( acc_id, 32,"%s(%s)", gc->prpl->name, gc->username );333 acc_id = g_strdup_printf( "%s(%s)", gc->prpl->name, gc->username ); 333 334 else 334 g_snprintf( acc_id, 32, "%s",gc->prpl->name );335 acc_id = g_strdup( gc->prpl->name ); 335 336 336 337 irc_usermsg( gc->irc, "%s - %s", acc_id, msg ); 338 339 g_free( acc_id ); 337 340 } 338 341 … … 352 355 353 356 /* MSN servers sometimes redirect you to a different server and do 354 the whole login sequence again, so subsequentcalls to this357 the whole login sequence again, so these "late" calls to this 355 358 function should be handled correctly. (IOW, ignored) */ 356 359 if( gc->flags & OPT_LOGGED_IN ) … … 364 367 gc->flags |= OPT_LOGGED_IN; 365 368 366 if( u && u->away ) proto_away( gc, u->away ); 367 368 if( !strcmp(gc->prpl->name, "icq") ) 369 /* Also necessary when we're not away, at least for some of the 370 protocols. */ 371 proto_away( gc, u->away ); 372 373 if( strcmp( gc->prpl->name, "ICQ" ) == 0 ) 369 374 { 370 375 for( u = gc->irc->users; u; u = u->next ) … … 470 475 /* list.c */ 471 476 472 int bud_list_cache_exists( struct gaim_connection *gc )473 {474 return( 0 );475 }476 477 void do_import( struct gaim_connection *gc, void *null )478 {479 return;480 }481 482 477 void add_buddy( struct gaim_connection *gc, char *group, char *handle, char *realname ) 483 478 { … … 531 526 u->gc = gc; 532 527 u->handle = g_strdup( handle ); 528 if( group ) u->group = g_strdup( group ); 533 529 u->send_handler = buddy_send_handler; 534 530 u->last_typing_notice = 0; … … 552 548 553 549 return( b ); 554 }555 556 void do_export( struct gaim_connection *gc )557 {558 return;559 550 } 560 551 … … 882 873 883 874 return( c ); 884 }885 886 void serv_finish_login( struct gaim_connection *gc )887 {888 return;889 875 } 890 876
Note: See TracChangeset
for help on using the changeset viewer.