From 084ac146addaeb081e7b66b7cba562f5ddca644a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 12 Mar 2021 06:34:25 +0000 Subject: fix manaplus2/manaplus#9 : limited the check to tmwa, not needed for evol/herc --- src/gui/windows/chatwindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 7fc059f5c..0d52dad14 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1662,8 +1662,11 @@ bool ChatWindow::resortChatLog(std::string line, { replaceAll(tmpNick, "#", "_"); replaceAll(tmpNick, "%", "_"); - // TRANSLATORS: error message - line = _("Broken nick detected: ") + line; + if (Net::getNetworkType() == ServerType::TMWATHENA) + { + // TRANSLATORS: error message + line = _("Broken nick detected: ") + line; + } own = ChatMsgType::BY_SERVER; } const size_t idx = line.find(": \302\202"); -- cgit v1.2.3-70-g09d2