Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r1053836 r9cb9868  
    2727#include "msn.h"
    2828
     29static struct prpl *my_protocol = NULL;
     30
    2931static void msn_login( struct aim_user *acct )
    3032{
     
    8486                {
    8587                        m = l->data;
    86                
    87                         serv_got_crap( gc, "Warning: Closing down MSN connection with unsent message to %s, you'll have to resend it.", m->who );
    8888                        g_free( m->who );
    8989                        g_free( m->text );
     
    9191                }
    9292                g_slist_free( md->msgq );
     93               
     94                serv_got_crap( gc, "Warning: Closing down MSN connection with unsent message(s), you'll have to resend them." );
    9395        }
    9496       
     
    170172       
    171173        for( i = 0; msn_away_state_list[i].number > -1; i ++ )
    172                 l = g_list_append( l, (void*) msn_away_state_list[i].name );
     174                l = g_list_append( l, msn_away_state_list[i].name );
    173175       
    174176        return( l );
     
    177179static char *msn_get_status_string( struct gaim_connection *gc, int number )
    178180{
    179         const struct msn_away_state *st = msn_away_state_by_number( number );
     181        struct msn_away_state *st = msn_away_state_by_number( number );
    180182       
    181183        if( st )
    182                 return( (char*) st->name );
     184                return( st->name );
    183185        else
    184186                return( "" );
     
    189191        char buf[1024];
    190192        struct msn_data *md = gc->proto_data;
    191         const struct msn_away_state *st;
     193        struct msn_away_state *st;
    192194       
    193195        if( strcmp( state, GAIM_AWAY_CUSTOM ) == 0 )
     
    373375}
    374376
    375 void msn_init()
    376 {
    377         struct prpl *ret = g_new0(struct prpl, 1);
    378         ret->name = "msn";
     377void msn_init(struct prpl *ret)
     378{
     379        ret->protocol = PROTO_MSN;
    379380        ret->login = msn_login;
    380381        ret->close = msn_close;
     
    399400        ret->cmp_buddynames = g_strcasecmp;
    400401
    401         register_protocol(ret);
    402 }
     402        my_protocol = ret;
     403}
Note: See TracChangeset for help on using the changeset viewer.