Changes in protocols/nogaim.c [9b8a38b:4bfca70]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
r9b8a38b r4bfca70 14 14 * (except for the function names). 15 15 * 16 * Copyright 2002-200 6 Wilmer van der Gaast <wilmer@gaast.net> and others16 * Copyright 2002-2004 Wilmer van der Gaast <lintux@lintux.cx> 17 17 */ 18 18 … … 39 39 #include <iconv.h> 40 40 41 static char *proto_away_alias[ 8][5] =41 static char *proto_away_alias[7][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" },50 49 { NULL } 51 50 }; … … 306 305 { 307 306 va_list params; 308 char text[1024], buf[1024], *acc_id;307 char text[1024], buf[1024], acc_id[33]; 309 308 char *msg; 310 309 account_t *a; … … 331 330 /* If we found one, add the screenname to the acc_id. */ 332 331 if( a ) 333 acc_id = g_strdup_printf("%s(%s)", gc->prpl->name, gc->username );332 g_snprintf( acc_id, 32, "%s(%s)", gc->prpl->name, gc->username ); 334 333 else 335 acc_id = g_strdup(gc->prpl->name );334 g_snprintf( acc_id, 32, "%s", gc->prpl->name ); 336 335 337 336 irc_usermsg( gc->irc, "%s - %s", acc_id, msg ); 338 339 g_free( acc_id );340 337 } 341 338 … … 355 352 356 353 /* MSN servers sometimes redirect you to a different server and do 357 the whole login sequence again, so these "late"calls to this354 the whole login sequence again, so subsequent calls to this 358 355 function should be handled correctly. (IOW, ignored) */ 359 356 if( gc->flags & OPT_LOGGED_IN ) … … 367 364 gc->flags |= OPT_LOGGED_IN; 368 365 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 ) 366 if( u && u->away ) proto_away( gc, u->away ); 367 368 if( !strcmp(gc->prpl->name, "icq") ) 374 369 { 375 370 for( u = gc->irc->users; u; u = u->next ) … … 475 470 /* list.c */ 476 471 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 477 482 void add_buddy( struct gaim_connection *gc, char *group, char *handle, char *realname ) 478 483 { … … 526 531 u->gc = gc; 527 532 u->handle = g_strdup( handle ); 528 if( group ) u->group = g_strdup( group );529 533 u->send_handler = buddy_send_handler; 530 534 u->last_typing_notice = 0; … … 548 552 549 553 return( b ); 554 } 555 556 void do_export( struct gaim_connection *gc ) 557 { 558 return; 550 559 } 551 560 … … 873 882 874 883 return( c ); 884 } 885 886 void serv_finish_login( struct gaim_connection *gc ) 887 { 888 return; 875 889 } 876 890
Note: See TracChangeset
for help on using the changeset viewer.