Mercurial > pidgin
diff libgaim/protocols/jabber/buddy.c @ 14463:7df4ab213577
[gaim-migrate @ 17177]
commit part of 1547648
commit some jabber stuff I did a few days ago and forgot about
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 06 Sep 2006 03:58:53 +0000 |
parents | 60b1bc8dbf37 |
children | f23506e8f812 |
line wrap: on
line diff
--- a/libgaim/protocols/jabber/buddy.c Wed Sep 06 03:12:05 2006 +0000 +++ b/libgaim/protocols/jabber/buddy.c Wed Sep 06 03:58:53 2006 +0000 @@ -658,6 +658,8 @@ purdy = gaim_strdup_withhtml(jbr->status); g_string_append_printf(info_text, "<b>%s:</b> %s<br/>", _("Resource"), jbr->name); + g_string_append_printf(info_text, "<b>%s:</b> %d<br/>", + _("Priority"), jbr->priority); g_string_append_printf(info_text, "<b>%s:</b> %s%s%s<br/>", _("Status"), jabber_buddy_state_get_name(jbr->state), purdy ? ": " : "", @@ -1190,7 +1192,7 @@ JabberBuddy *jb = jabber_buddy_find(js, who, TRUE); xmlnode *presence; JabberBuddyState state; - const char *msg; + char *msg; int priority; account = gaim_connection_get_account(js->gc); @@ -1200,6 +1202,8 @@ gaim_status_to_jabber(status, &state, &msg, &priority); presence = jabber_presence_create(state, msg, priority); + g_free(msg); + xmlnode_set_attrib(presence, "to", who); if(invisible) { xmlnode_set_attrib(presence, "type", "invisible");