Remove another markdown thing

This commit is contained in:
oldmud0 2021-12-18 22:02:30 -06:00
parent 133b3b58d9
commit d137022174

View File

@ -548,15 +548,10 @@ void Lobby::get_motd()
{ {
ao_app->net_manager->request_document(MSDocumentType::Motd, ao_app->net_manager->request_document(MSDocumentType::Motd,
[this](QString document) { [this](QString document) {
if (document.isEmpty()) if (document.isEmpty()) {
document = tr("Couldn't get the message of the day."); 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);
}); });
} }