Mercurial > pidgin
diff src/protocols/jabber/presence.c @ 8296:dd6fe7d965aa
[gaim-migrate @ 9020]
committing piecemeal sucks, but filetransfer isn't ready for prime time yet. hopefully this doesn't break anything.
this should fix the problems with empty <stream:features/> packets, fix a bug in MUC conferencing, and re-add the option for changing passwords on XMPP servers, until I write the code to actually detect that.
Hopefully this compiles, and I didn't break anything.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 19 Feb 2004 14:57:41 +0000 |
parents | e0a70b763872 |
children | a6e8ef48c7a4 |
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c Thu Feb 19 14:52:09 2004 +0000 +++ b/src/protocols/jabber/presence.c Thu Feb 19 14:57:41 2004 +0000 @@ -39,10 +39,13 @@ { JabberChat *chat = val; xmlnode *presence = user_data; - char *chat_jid = key; + const char *chat_bare_jid = key; + char *chat_full_jid = g_strdup_printf("%s/%s", chat_bare_jid, + gaim_conv_chat_get_nick(GAIM_CONV_CHAT(chat->conv))); - xmlnode_set_attrib(presence, "to", chat_jid); + xmlnode_set_attrib(presence, "to", chat_full_jid); jabber_send(chat->js, presence); + g_free(chat_full_jid); } void jabber_presence_fake_to_self(JabberStream *js, const char *away_state, const char *msg) {