summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-09-21 02:06:45 +0200
committerFedja Beader <fedja@protonmail.ch>2024-09-21 02:10:52 +0200
commit6770befeb3b0d3141ddf6ce835347007d0dd6492 (patch)
treeab8ba0f9aef891b9e49609471d8586542f00668a
parent7085c77758e2cb791cba6a4dc41d796a99426b7c (diff)
downloadmanaplus-general_tab_message_redirect.tar.gz
manaplus-general_tab_message_redirect.tar.bz2
manaplus-general_tab_message_redirect.tar.xz
manaplus-general_tab_message_redirect.zip
Make magic & server message redirect options also apply for non-TMWA servers.general_tab_message_redirect
At least the MOTD announcement that should probably stay in General is now moved to Debug. Needs fine-tuning or discarding altogether.
-rw-r--r--src/gui/widgets/tabs/chat/chattab.cpp5
1 files 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) == '#'