Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    reded1f7 rde03374  
    7676        jd->username = g_strdup( acc->user );
    7777        jd->server = strchr( jd->username, '@' );
     78       
     79        jd->fd = jd->r_inpa = jd->w_inpa = -1;
    7880       
    7981        if( jd->server == NULL )
     
    232234        struct jabber_data *jd = ic->proto_data;
    233235       
    234         jabber_end_stream( ic );
     236        if( jd->fd >= 0 )
     237                jabber_end_stream( ic );
    235238       
    236239        while( ic->groupchats )
     
    250253                g_free( jd->txq );
    251254       
    252         g_hash_table_destroy( jd->node_cache );
     255        if( jd->node_cache )
     256                g_hash_table_destroy( jd->node_cache );
    253257       
    254258        xt_free( jd->xt );
     
    421425        if( c )
    422426                jabber_chat_leave( c, NULL );
    423 }
    424 
    425 static 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 );
    437427}
    438428
     
    508498        ret->chat_msg = jabber_chat_msg_;
    509499        ret->chat_topic = jabber_chat_topic_;
    510         ret->chat_invite = jabber_chat_invite_;
     500//      ret->chat_invite = jabber_chat_invite;
    511501        ret->chat_leave = jabber_chat_leave_;
    512502        ret->chat_join = jabber_chat_join_;
     
    514504        ret->send_typing = jabber_send_typing;
    515505        ret->handle_cmp = g_strcasecmp;
    516         ret->transfer_request = jabber_si_transfer_request;
    517506
    518507        register_protocol( ret );
Note: See TracChangeset for help on using the changeset viewer.