Changes in protocols/jabber/jabber.c [aea8b68:f9928cb]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
raea8b68 rf9928cb 58 58 char str[16]; 59 59 60 s = set_add( &acc->set, "activity_timeout", "600", set_eval_int, acc );61 62 60 g_snprintf( str, sizeof( str ), "%d", jabber_port_list[0] ); 63 61 s = set_add( &acc->set, "port", str, set_eval_int, acc ); … … 65 63 66 64 s = set_add( &acc->set, "priority", "0", set_eval_priority, acc ); 67 68 s = set_add( &acc->set, "proxy", "<local>;<auto>", NULL, acc );69 65 70 66 s = set_add( &acc->set, "resource", "BitlBee", NULL, acc ); … … 266 262 struct jabber_data *jd = ic->proto_data; 267 263 268 while( jd->filetransfers )269 imcb_file_canceled( ic, ( ( struct jabber_transfer *) jd->filetransfers->data )->ft, "Logging out" );270 271 while( jd->streamhosts )272 {273 jabber_streamhost_t *sh = jd->streamhosts->data;274 jd->streamhosts = g_slist_remove( jd->streamhosts, sh );275 g_free( sh->jid );276 g_free( sh->host );277 g_free( sh );278 }279 280 264 if( jd->fd >= 0 ) 281 265 jabber_end_stream( ic ); 282 266 283 267 while( ic->groupchats ) 284 jabber_chat_free( ic->groupchats ->data);268 jabber_chat_free( ic->groupchats ); 285 269 286 270 if( jd->r_inpa >= 0 ) … … 323 307 bud = jabber_buddy_by_ext_jid( ic, who, 0 ); 324 308 else 325 bud = jabber_buddy_by_jid( ic, who, GET_BUDDY_BARE_OK);309 bud = jabber_buddy_by_jid( ic, who, 0 ); 326 310 327 311 node = xt_new_node( "body", message, NULL ); … … 368 352 static void jabber_get_info( struct im_connection *ic, char *who ) 369 353 { 354 struct jabber_data *jd = ic->proto_data; 370 355 struct jabber_buddy *bud; 371 356 372 bud = jabber_buddy_by_jid( ic, who, GET_BUDDY_FIRST ); 357 if( strchr( who, '/' ) ) 358 bud = jabber_buddy_by_jid( ic, who, 0 ); 359 else 360 { 361 char *s = jabber_normalize( who ); 362 bud = g_hash_table_lookup( jd->buddies, s ); 363 g_free( s ); 364 } 373 365 374 366 while( bud ) … … 558 550 ret->send_typing = jabber_send_typing; 559 551 ret->handle_cmp = g_strcasecmp; 560 ret->transfer_request = jabber_si_transfer_request;561 552 562 553 register_protocol( ret );
Note: See TracChangeset
for help on using the changeset viewer.