comparison libpurple/protocols/jabber/disco.c @ 32767:2ec94166be43

On the way to hiding the PurpleConnection struct. * Added purple_connection_get_flags() and purple_connection_set_flags() * Use purple_connection_ accessor functions.
author andrew.victor@mxit.com
date Tue, 18 Oct 2011 18:47:48 +0000
parents efe38e6319f2
children
comparison
equal deleted inserted replaced
32766:ea2b621fd3ba 32767:2ec94166be43
385 if (js->server_caps & JABBER_CAP_BLOCKING) { 385 if (js->server_caps & JABBER_CAP_BLOCKING) {
386 jabber_request_block_list(js); 386 jabber_request_block_list(js);
387 } 387 }
388 388
389 /* If there are manually specified bytestream proxies, query them */ 389 /* If there are manually specified bytestream proxies, query them */
390 ft_proxies = purple_account_get_string(js->gc->account, "ft_proxies", NULL); 390 ft_proxies = purple_account_get_string(purple_connection_get_account(js->gc), "ft_proxies", NULL);
391 if (ft_proxies) { 391 if (ft_proxies) {
392 JabberIq *iq; 392 JabberIq *iq;
393 JabberBytestreamsStreamhost *sh; 393 JabberBytestreamsStreamhost *sh;
394 int i; 394 int i;
395 char *tmp; 395 char *tmp;
522 category = xmlnode_get_attrib(child, "category"); 522 category = xmlnode_get_attrib(child, "category");
523 type = xmlnode_get_attrib(child, "type"); 523 type = xmlnode_get_attrib(child, "type");
524 if(category && type && !strcmp(category, "pubsub") && !strcmp(type,"pep")) { 524 if(category && type && !strcmp(category, "pubsub") && !strcmp(type,"pep")) {
525 PurpleConnection *gc = js->gc; 525 PurpleConnection *gc = js->gc;
526 js->pep = TRUE; 526 js->pep = TRUE;
527 gc->flags |= PURPLE_CONNECTION_SUPPORT_MOODS | 527 purple_connection_set_flags(gc,
528 PURPLE_CONNECTION_SUPPORT_MOOD_MESSAGES; 528 purple_connection_get_flags(gc)
529 | PURPLE_CONNECTION_SUPPORT_MOODS
530 | PURPLE_CONNECTION_SUPPORT_MOOD_MESSAGES);
529 } 531 }
530 if (!category || strcmp(category, "server")) 532 if (!category || strcmp(category, "server"))
531 continue; 533 continue;
532 if (!type || strcmp(type, "im")) 534 if (!type || strcmp(type, "im"))
533 continue; 535 continue;