Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    rde03374 reded1f7  
    7676        jd->username = g_strdup( acc->user );
    7777        jd->server = strchr( jd->username, '@' );
    78        
    79         jd->fd = jd->r_inpa = jd->w_inpa = -1;
    8078       
    8179        if( jd->server == NULL )
     
    234232        struct jabber_data *jd = ic->proto_data;
    235233       
    236         if( jd->fd >= 0 )
    237                 jabber_end_stream( ic );
     234        jabber_end_stream( ic );
    238235       
    239236        while( ic->groupchats )
     
    253250                g_free( jd->txq );
    254251       
    255         if( jd->node_cache )
    256                 g_hash_table_destroy( jd->node_cache );
     252        g_hash_table_destroy( jd->node_cache );
    257253       
    258254        xt_free( jd->xt );
     
    425421        if( c )
    426422                jabber_chat_leave( c, NULL );
     423}
     424
     425static void jabber_chat_invite_( struct groupchat *c, char *who, char *msg )
     426{
     427        struct jabber_chat *jc = c->data;
     428        gchar *msg_alt = NULL;
     429
     430        if( msg == NULL )
     431                msg_alt = g_strdup_printf( "%s invited you to %s", c->ic->acc->user, jc->name );
     432       
     433        if( c && who )
     434                jabber_chat_invite( c, who, msg ? msg : msg_alt );
     435       
     436        g_free( msg_alt );
    427437}
    428438
     
    498508        ret->chat_msg = jabber_chat_msg_;
    499509        ret->chat_topic = jabber_chat_topic_;
    500 //      ret->chat_invite = jabber_chat_invite;
     510        ret->chat_invite = jabber_chat_invite_;
    501511        ret->chat_leave = jabber_chat_leave_;
    502512        ret->chat_join = jabber_chat_join_;
     
    504514        ret->send_typing = jabber_send_typing;
    505515        ret->handle_cmp = g_strcasecmp;
     516        ret->transfer_request = jabber_si_transfer_request;
    506517
    507518        register_protocol( ret );
Note: See TracChangeset for help on using the changeset viewer.