Changes in protocols/jabber/jabber.c [de03374:eded1f7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
rde03374 reded1f7 76 76 jd->username = g_strdup( acc->user ); 77 77 jd->server = strchr( jd->username, '@' ); 78 79 jd->fd = jd->r_inpa = jd->w_inpa = -1;80 78 81 79 if( jd->server == NULL ) … … 234 232 struct jabber_data *jd = ic->proto_data; 235 233 236 if( jd->fd >= 0 ) 237 jabber_end_stream( ic ); 234 jabber_end_stream( ic ); 238 235 239 236 while( ic->groupchats ) … … 253 250 g_free( jd->txq ); 254 251 255 if( jd->node_cache ) 256 g_hash_table_destroy( jd->node_cache ); 252 g_hash_table_destroy( jd->node_cache ); 257 253 258 254 xt_free( jd->xt ); … … 425 421 if( c ) 426 422 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 ); 427 437 } 428 438 … … 498 508 ret->chat_msg = jabber_chat_msg_; 499 509 ret->chat_topic = jabber_chat_topic_; 500 // ret->chat_invite = jabber_chat_invite;510 ret->chat_invite = jabber_chat_invite_; 501 511 ret->chat_leave = jabber_chat_leave_; 502 512 ret->chat_join = jabber_chat_join_; … … 504 514 ret->send_typing = jabber_send_typing; 505 515 ret->handle_cmp = g_strcasecmp; 516 ret->transfer_request = jabber_si_transfer_request; 506 517 507 518 register_protocol( ret );
Note: See TracChangeset
for help on using the changeset viewer.