comparison src/protocols/jabber/message.c @ 7968:64e94b6823c3

[gaim-migrate @ 8645] ok, jabber chat invites don't suck now committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 01 Jan 2004 06:38:55 +0000
parents 119a22025818
children 6fca0d9cc98b
comparison
equal deleted inserted replaced
7967:970d252687df 7968:64e94b6823c3
314 } else if(xmlns && !strcmp(xmlns, 314 } else if(xmlns && !strcmp(xmlns,
315 "http://jabber.org/protocol/muc#user")) { 315 "http://jabber.org/protocol/muc#user")) {
316 xmlnode *invite = xmlnode_get_child(child, "invite"); 316 xmlnode *invite = xmlnode_get_child(child, "invite");
317 if(invite) { 317 if(invite) {
318 xmlnode *reason, *password; 318 xmlnode *reason, *password;
319 const char *jid = xmlnode_get_attrib(child, "from"); 319 const char *jid = xmlnode_get_attrib(invite, "from");
320 g_free(jm->to); 320 g_free(jm->to);
321 jm->to = jm->from; 321 jm->to = jm->from;
322 jm->from = g_strdup(jid); 322 jm->from = g_strdup(jid);
323 if((reason = xmlnode_get_child(invite, "reason"))) { 323 if((reason = xmlnode_get_child(invite, "reason"))) {
324 g_free(jm->body); 324 g_free(jm->body);