Mercurial > pidgin
comparison src/protocols/jabber/presence.c @ 12265:f82b6d559ea7
[gaim-migrate @ 14567]
sean noticed that i'm dumb
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 29 Nov 2005 23:59:36 +0000 |
parents | ea0f39933003 |
children | af257d8679fe |
comparison
equal
deleted
inserted
replaced
12264:2be62353f708 | 12265:f82b6d559ea7 |
---|---|
117 gaim_markup_html_to_xhtml(msg, NULL, &stripped); | 117 gaim_markup_html_to_xhtml(msg, NULL, &stripped); |
118 | 118 |
119 presence = jabber_presence_create(state, stripped, priority); | 119 presence = jabber_presence_create(state, stripped, priority); |
120 g_free(stripped); | 120 g_free(stripped); |
121 | 121 |
122 jabber_send(js, presence); | |
123 | |
124 if(js->avatar_hash) { | 122 if(js->avatar_hash) { |
125 x = xmlnode_new_child(presence, "x"); | 123 x = xmlnode_new_child(presence, "x"); |
126 xmlnode_set_attrib(x, "xmlns", "vcard-temp:x:update"); | 124 xmlnode_set_attrib(x, "xmlns", "vcard-temp:x:update"); |
127 photo = xmlnode_new_child(x, "photo"); | 125 photo = xmlnode_new_child(x, "photo"); |
128 xmlnode_insert_data(photo, js->avatar_hash, -1); | 126 xmlnode_insert_data(photo, js->avatar_hash, -1); |
129 } | 127 } |
128 | |
129 jabber_send(js, presence); | |
130 | 130 |
131 g_hash_table_foreach(js->chats, chats_send_presence_foreach, presence); | 131 g_hash_table_foreach(js->chats, chats_send_presence_foreach, presence); |
132 xmlnode_free(presence); | 132 xmlnode_free(presence); |
133 | 133 |
134 jabber_presence_fake_to_self(js, status); | 134 jabber_presence_fake_to_self(js, status); |