aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-12-18 22:02:30 -0600
committeroldmud0 <oldmud0@users.noreply.github.com>2021-12-18 22:02:30 -0600
commitd1370221742b2accf2cd8bfc129ca72c2ca09595 (patch)
tree3d876f12606877a15924299ca5e60c8353adfa4e /src
parent133b3b58d976b8b923c2611b2b1177e25450147c (diff)
Remove another markdown thing
Diffstat (limited to 'src')
-rw-r--r--src/lobby.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lobby.cpp b/src/lobby.cpp
index feb922ca..ad4ebb70 100644
--- a/src/lobby.cpp
+++ b/src/lobby.cpp
@@ -548,15 +548,10 @@ void Lobby::get_motd()
{
ao_app->net_manager->request_document(MSDocumentType::Motd,
[this](QString document) {
- if (document.isEmpty())
+ if (document.isEmpty()) {
document = tr("Couldn't get the message of the day.");
- bool isHtml = document.startsWith("<!DOCTYPE", Qt::CaseInsensitive)
- || document.startsWith("<html>", Qt::CaseInsensitive);
- if (isHtml) {
- ui_chatbox->setHtml(document);
- } else {
- ui_chatbox->setMarkdown(document);
}
+ ui_chatbox->setHtml(document);
});
}