fixed a hyperlink bug and a bug where > and < wouldn't display properly with rainbow text
This commit is contained in:
parent
f199006262
commit
122a461c42
@ -25,6 +25,7 @@ void AOTextArea::append_chatmessage(QString p_name, QString p_message)
|
|||||||
{
|
{
|
||||||
if (i_word.startsWith("http"))
|
if (i_word.startsWith("http"))
|
||||||
{
|
{
|
||||||
|
i_word.replace("\n", "").replace("\r", "");
|
||||||
this->insertHtml("<a href=\"" + i_word + "\">" + i_word + "</a> ");
|
this->insertHtml("<a href=\"" + i_word + "\">" + i_word + "</a> ");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1192,13 +1192,10 @@ void Courtroom::chat_tick()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
QString f_character = f_message.at(tick_pos);
|
QString f_character = f_message.at(tick_pos);
|
||||||
|
f_character = f_character.toHtmlEscaped();
|
||||||
|
|
||||||
if (f_character == " ")
|
if (f_character == " ")
|
||||||
ui_vp_message->insertPlainText(" ");
|
ui_vp_message->insertPlainText(" ");
|
||||||
else if (f_character == "<")
|
|
||||||
ui_vp_message->insertHtml("<");
|
|
||||||
else if (f_character == ">")
|
|
||||||
ui_vp_message->insertHtml(">");
|
|
||||||
else if (m_chatmessage[TEXT_COLOR].toInt() == RAINBOW)
|
else if (m_chatmessage[TEXT_COLOR].toInt() == RAINBOW)
|
||||||
{
|
{
|
||||||
QString html_color;
|
QString html_color;
|
||||||
|
Loading…
Reference in New Issue
Block a user