Changeset 728a981 for protocols/nogaim.c


Ignore:
Timestamp:
2006-03-24T15:16:38Z (19 years ago)
Author:
Jelmer Vernooij <jelmer@…>
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.
Message:

[merge] Wilmer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r96ace1b r728a981  
    1414 * (except for the function names).
    1515 *
    16  * Copyright 2002-2004 Wilmer van der Gaast <lintux@lintux.cx>
     16 * Copyright 2002-2006 Wilmer van der Gaast <wilmer@gaast.net> and others
    1717 */
    1818
     
    3939#include <iconv.h>
    4040
    41 static char *proto_away_alias[7][5] =
     41static char *proto_away_alias[8][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" },
    4950        { NULL }
    5051};
     
    305306{
    306307        va_list params;
    307         char text[1024], buf[1024], acc_id[33];
     308        char text[1024], buf[1024], *acc_id;
    308309        char *msg;
    309310        account_t *a;
     
    330331        /* If we found one, add the screenname to the acc_id. */
    331332        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 );
    333334        else
    334                 g_snprintf( acc_id, 32, "%s", gc->prpl->name );
     335                acc_id = g_strdup( gc->prpl->name );
    335336       
    336337        irc_usermsg( gc->irc, "%s - %s", acc_id, msg );
     338       
     339        g_free( acc_id );
    337340}
    338341
     
    352355       
    353356        /* MSN servers sometimes redirect you to a different server and do
    354            the whole login sequence again, so subsequent calls to this
     357           the whole login sequence again, so these "late" calls to this
    355358           function should be handled correctly. (IOW, ignored) */
    356359        if( gc->flags & OPT_LOGGED_IN )
     
    364367        gc->flags |= OPT_LOGGED_IN;
    365368       
    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 )
    369374        {
    370375                for( u = gc->irc->users; u; u = u->next )
     
    470475/* list.c */
    471476
    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 
    482477void add_buddy( struct gaim_connection *gc, char *group, char *handle, char *realname )
    483478{
     
    531526        u->gc = gc;
    532527        u->handle = g_strdup( handle );
     528        if( group ) u->group = g_strdup( group );
    533529        u->send_handler = buddy_send_handler;
    534530        u->last_typing_notice = 0;
     
    552548       
    553549        return( b );
    554 }
    555 
    556 void do_export( struct gaim_connection *gc )
    557 {
    558         return;
    559550}
    560551
     
    882873       
    883874        return( c );
    884 }
    885 
    886 void serv_finish_login( struct gaim_connection *gc )
    887 {
    888         return;
    889875}
    890876
Note: See TracChangeset for help on using the changeset viewer.