aboutsummaryrefslogtreecommitdiff
path: root/lobby.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lobby.cpp')
-rw-r--r--lobby.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lobby.cpp b/lobby.cpp
index 3674ea97..91b5667e 100644
--- a/lobby.cpp
+++ b/lobby.cpp
@@ -350,7 +350,10 @@ void Lobby::append_chatmessage(QString f_message)
for (QString i_word : word_list)
{
if (i_word.startsWith("http"))
+ {
+ i_word.replace("\n", "").replace("\r", "");
ui_chatbox->insertHtml("<a href=\"" + i_word + "\">" + i_word + "</a> ");
+ }
else
ui_chatbox->insertPlainText(i_word + " ");
}