Changes in protocols/jabber/jabber.c [f9928cb:38ff846]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
rf9928cb r38ff846 58 58 char str[16]; 59 59 60 s = set_add( &acc->set, "activity_timeout", "600", set_eval_int, acc ); 61 60 62 g_snprintf( str, sizeof( str ), "%d", jabber_port_list[0] ); 61 63 s = set_add( &acc->set, "port", str, set_eval_int, acc ); … … 77 79 s = set_add( &acc->set, "tls", "try", set_eval_tls, acc ); 78 80 s->flags |= ACC_SET_OFFLINE_ONLY; 81 82 s = set_add( &acc->set, "user_agent", "BitlBee", NULL, acc ); 79 83 80 84 s = set_add( &acc->set, "xmlconsole", "false", set_eval_bool, acc ); … … 284 288 g_hash_table_destroy( jd->node_cache ); 285 289 290 jabber_buddy_remove_all( ic ); 291 286 292 xt_free( jd->xt ); 287 293 … … 307 313 bud = jabber_buddy_by_ext_jid( ic, who, 0 ); 308 314 else 309 bud = jabber_buddy_by_jid( ic, who, 0);315 bud = jabber_buddy_by_jid( ic, who, GET_BUDDY_BARE_OK ); 310 316 311 317 node = xt_new_node( "body", message, NULL ); … … 352 358 static void jabber_get_info( struct im_connection *ic, char *who ) 353 359 { 354 struct jabber_data *jd = ic->proto_data;355 360 struct jabber_buddy *bud; 356 361 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 } 362 bud = jabber_buddy_by_jid( ic, who, GET_BUDDY_FIRST ); 365 363 366 364 while( bud ) … … 476 474 { 477 475 /* Just any whitespace character is enough as a keepalive for XMPP sessions. */ 478 jabber_write( ic, "\n", 1 ); 476 if( !jabber_write( ic, "\n", 1 ) ) 477 return; 479 478 480 479 /* This runs the garbage collection every minute, which means every packet
Note: See TracChangeset
for help on using the changeset viewer.