From 6770befeb3b0d3141ddf6ce835347007d0dd6492 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Sat, 21 Sep 2024 02:06:45 +0200 Subject: Make magic & server message redirect options also apply for non-TMWA servers. At least the MOTD announcement that should probably stay in General is now moved to Debug. Needs fine-tuning or discarding altogether. --- src/gui/widgets/tabs/chat/chattab.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp index de7944a44..5d253e260 100644 --- a/src/gui/widgets/tabs/chat/chattab.cpp +++ b/src/gui/widgets/tabs/chat/chattab.cpp @@ -231,9 +231,8 @@ void ChatTab::chatLog(std::string line, } // if configured, move magic messages log to debug chat tab - if (Net::getNetworkType() == ServerType::TMWATHENA - && this == localChatTab - && ((config.getBoolValue("showMagicInDebug") + if (this == localChatTab && + ( (config.getBoolValue("showMagicInDebug") && own == ChatMsgType::BY_PLAYER && tmp.text.length() > 1 && tmp.text.at(0) == '#' -- cgit v1.2.3-70-g09d2