comparison libpurple/protocols/irc/irc.c @ 16108:6dab5732a4fd

Fix the HTML-on-IRC issues observed as a result of the bi-di text support patch. I don't think that patch actually introduced the problem, but made it more apparent.
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 14 Apr 2007 16:37:08 +0000
parents 1980273186a4
children a338acd14365
comparison
equal deleted inserted replaced
16107:1980273186a4 16108:6dab5732a4fd
476 if (strchr(status_chars, *who) != NULL) 476 if (strchr(status_chars, *who) != NULL)
477 args[0] = who + 1; 477 args[0] = who + 1;
478 else 478 else
479 args[0] = who; 479 args[0] = who;
480 480
481 plain = purple_unescape_html(what); 481 purple_markup_html_to_xhtml(what, NULL, &plain);
482 args[1] = plain; 482 args[1] = plain;
483 483
484 irc_cmd_privmsg(irc, "msg", NULL, args); 484 irc_cmd_privmsg(irc, "msg", NULL, args);
485 g_free(plain); 485 g_free(plain);
486 return 1; 486 return 1;
688 #if 0 688 #if 0
689 if (*what == '/') { 689 if (*what == '/') {
690 return irc_parse_cmd(irc, convo->name, what + 1); 690 return irc_parse_cmd(irc, convo->name, what + 1);
691 } 691 }
692 #endif 692 #endif
693 tmp = purple_unescape_html(what); 693 purple_markup_html_to_xhtml(what, NULL, &tmp);
694 args[0] = convo->name; 694 args[0] = convo->name;
695 args[1] = tmp; 695 args[1] = tmp;
696 696
697 irc_cmd_privmsg(irc, "msg", NULL, args); 697 irc_cmd_privmsg(irc, "msg", NULL, args);
698 698