Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r9b8a38b r4bfca70  
    1414 * (except for the function names).
    1515 *
    16  * Copyright 2002-2006 Wilmer van der Gaast <wilmer@gaast.net> and others
     16 * Copyright 2002-2004 Wilmer van der Gaast <lintux@lintux.cx>
    1717 */
    1818
     
    3939#include <iconv.h>
    4040
    41 static char *proto_away_alias[8][5] =
     41static char *proto_away_alias[7][5] =
    4242{
    4343        { "Away from computer", "Away", "Extended away", NULL },
     
    4747        { "On the phone", "Phone", "On phone", NULL },
    4848        { "Out to lunch", "Lunch", "Food", NULL },
    49         { "Invisible", "Hidden" },
    5049        { NULL }
    5150};
     
    306305{
    307306        va_list params;
    308         char text[1024], buf[1024], *acc_id;
     307        char text[1024], buf[1024], acc_id[33];
    309308        char *msg;
    310309        account_t *a;
     
    331330        /* If we found one, add the screenname to the acc_id. */
    332331        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 );
    334333        else
    335                 acc_id = g_strdup( gc->prpl->name );
     334                g_snprintf( acc_id, 32, "%s", gc->prpl->name );
    336335       
    337336        irc_usermsg( gc->irc, "%s - %s", acc_id, msg );
    338        
    339         g_free( acc_id );
    340337}
    341338
     
    355352       
    356353        /* MSN servers sometimes redirect you to a different server and do
    357            the whole login sequence again, so these "late" calls to this
     354           the whole login sequence again, so subsequent calls to this
    358355           function should be handled correctly. (IOW, ignored) */
    359356        if( gc->flags & OPT_LOGGED_IN )
     
    367364        gc->flags |= OPT_LOGGED_IN;
    368365       
    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") )
    374369        {
    375370                for( u = gc->irc->users; u; u = u->next )
     
    475470/* list.c */
    476471
     472int bud_list_cache_exists( struct gaim_connection *gc )
     473{
     474        return( 0 );
     475}
     476
     477void do_import( struct gaim_connection *gc, void *null )
     478{
     479        return;
     480}
     481
    477482void add_buddy( struct gaim_connection *gc, char *group, char *handle, char *realname )
    478483{
     
    526531        u->gc = gc;
    527532        u->handle = g_strdup( handle );
    528         if( group ) u->group = g_strdup( group );
    529533        u->send_handler = buddy_send_handler;
    530534        u->last_typing_notice = 0;
     
    548552       
    549553        return( b );
     554}
     555
     556void do_export( struct gaim_connection *gc )
     557{
     558        return;
    550559}
    551560
     
    873882       
    874883        return( c );
     884}
     885
     886void serv_finish_login( struct gaim_connection *gc )
     887{
     888        return;
    875889}
    876890
Note: See TracChangeset for help on using the changeset viewer.