Changeset 0fbd3a6d for protocols/jabber/jabber.c
- Timestamp:
- 2007-12-19T00:24:32Z (17 years ago)
- Branches:
- master
- Children:
- 1ba7e8f
- Parents:
- 793cc25 (diff), 2379566 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
r793cc25 r0fbd3a6d 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; 78 80 79 81 if( jd->server == NULL ) … … 232 234 struct jabber_data *jd = ic->proto_data; 233 235 234 jabber_end_stream( ic ); 236 if( jd->fd >= 0 ) 237 jabber_end_stream( ic ); 235 238 236 239 while( ic->groupchats ) … … 250 253 g_free( jd->txq ); 251 254 252 g_hash_table_destroy( jd->node_cache ); 255 if( jd->node_cache ) 256 g_hash_table_destroy( jd->node_cache ); 253 257 254 258 xt_free( jd->xt ); … … 421 425 if( c ) 422 426 jabber_chat_leave( c, NULL ); 427 } 428 429 static void jabber_chat_invite_( struct groupchat *c, char *who, char *msg ) 430 { 431 struct jabber_chat *jc = c->data; 432 gchar *msg_alt = NULL; 433 434 if( msg == NULL ) 435 msg_alt = g_strdup_printf( "%s invited you to %s", c->ic->acc->user, jc->name ); 436 437 if( c && who ) 438 jabber_chat_invite( c, who, msg ? msg : msg_alt ); 439 440 g_free( msg_alt ); 423 441 } 424 442 … … 494 512 ret->chat_msg = jabber_chat_msg_; 495 513 ret->chat_topic = jabber_chat_topic_; 496 // ret->chat_invite = jabber_chat_invite;514 ret->chat_invite = jabber_chat_invite_; 497 515 ret->chat_leave = jabber_chat_leave_; 498 516 ret->chat_join = jabber_chat_join_;
Note: See TracChangeset
for help on using the changeset viewer.