comparison src/protocols/jabber/jabber.c @ 6953:c54699c55286

[gaim-migrate @ 7500] a gross hack because i'm a nice guy committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 24 Sep 2003 22:29:09 +0000
parents 8e0f0f492ff1
children 083d1e4a9c78
comparison
equal deleted inserted replaced
6952:094b97348076 6953:c54699c55286
1435 } 1435 }
1436 1436
1437 if (!type || !strcasecmp(type, "normal") || !strcasecmp(type, "chat")) { 1437 if (!type || !strcasecmp(type, "normal") || !strcasecmp(type, "chat")) {
1438 1438
1439 from = jid_full(p->from); 1439 from = jid_full(p->from);
1440 if ((y = xmlnode_get_tag(p->x, "html"))) { 1440 /* a gross hack because i'm a nice guy */
1441 if ((y = xmlnode_get_tag(p->x, "html")) && xmlnode_get_tag(y, "body")) {
1441 msg = xmlnode2str(y); 1442 msg = xmlnode2str(y);
1442 } else if ((y = xmlnode_get_tag(p->x, "body"))) { 1443 } else if ((y = xmlnode_get_tag(p->x, "body"))) {
1443 msg = xmlnode_get_data(y); 1444 msg = xmlnode_get_data(y);
1444 has_xhtml = FALSE; 1445 has_xhtml = FALSE;
1445 } 1446 }
1516 } 1517 }
1517 } else if (!strcasecmp(type, "groupchat")) { 1518 } else if (!strcasecmp(type, "groupchat")) {
1518 struct jabber_chat *jc; 1519 struct jabber_chat *jc;
1519 static int i = 0; 1520 static int i = 0;
1520 1521
1521 if ((y = xmlnode_get_tag(p->x, "html"))) { 1522 /* a gross hack because i'm a nice guy */
1523 if ((y = xmlnode_get_tag(p->x, "html")) && xmlnode_get_tag(y, "body")) {
1522 msg = xmlnode2str(y); 1524 msg = xmlnode2str(y);
1523 } else if ((y = xmlnode_get_tag(p->x, "body"))) { 1525 } else if ((y = xmlnode_get_tag(p->x, "body"))) {
1524 msg = xmlnode_get_data(y); 1526 msg = xmlnode_get_data(y);
1525 } 1527 }
1526 1528