Mercurial > pidgin.yaz
comparison src/protocols/jabber/buddy.c @ 7108:6faeeecab0dc
[gaim-migrate @ 7673]
Put the rest of util.[ch] into namespaces and sectioned off the functions.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 01 Oct 2003 07:15:53 +0000 |
parents | db6bd3e794d8 |
children | 6c8706109f92 |
comparison
equal
deleted
inserted
replaced
7107:9220c7490cd1 | 7108:6faeeecab0dc |
---|---|
533 from); | 533 from); |
534 | 534 |
535 if(resource_name) { | 535 if(resource_name) { |
536 jbr = jabber_buddy_find_resource(jb, resource_name); | 536 jbr = jabber_buddy_find_resource(jb, resource_name); |
537 if(jbr) { | 537 if(jbr) { |
538 char *purdy = strdup_withhtml(jbr->status); | 538 char *purdy = gaim_strdup_withhtml(jbr->status); |
539 g_string_append_printf(info_text, "<b>%s:</b> %s%s%s<br/>\n", | 539 g_string_append_printf(info_text, "<b>%s:</b> %s%s%s<br/>\n", |
540 _("Status"), jabber_get_state_string(jbr->state), | 540 _("Status"), jabber_get_state_string(jbr->state), |
541 purdy ? ": " : "", | 541 purdy ? ": " : "", |
542 purdy ? purdy : ""); | 542 purdy ? purdy : ""); |
543 g_free(purdy); | 543 g_free(purdy); |
547 } | 547 } |
548 } else { | 548 } else { |
549 for(resources = jb->resources; resources; resources = resources->next) { | 549 for(resources = jb->resources; resources; resources = resources->next) { |
550 char *purdy; | 550 char *purdy; |
551 jbr = resources->data; | 551 jbr = resources->data; |
552 purdy = strdup_withhtml(jbr->status); | 552 purdy = gaim_strdup_withhtml(jbr->status); |
553 g_string_append_printf(info_text, "<b>%s:</b> %s<br/>\n", | 553 g_string_append_printf(info_text, "<b>%s:</b> %s<br/>\n", |
554 _("Resource"), jbr->name); | 554 _("Resource"), jbr->name); |
555 g_string_append_printf(info_text, "<b>%s:</b> %s%s%s<br/><br/>\n", | 555 g_string_append_printf(info_text, "<b>%s:</b> %s%s%s<br/><br/>\n", |
556 _("Status"), jabber_get_state_string(jbr->state), | 556 _("Status"), jabber_get_state_string(jbr->state), |
557 purdy ? ": " : "", | 557 purdy ? ": " : "", |