summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-12 06:34:25 +0000
committerjak1 <mike.wollmann@gmail.com>2021-03-12 06:34:25 +0000
commit084ac146addaeb081e7b66b7cba562f5ddca644a (patch)
treeeef9ae79e6fe5dd909d95b2fcd1ca55b06afae7b /src/gui
parent9488e6a43b9d016a9b5f2e003ff927cc1bf11a4b (diff)
downloadplus-084ac146addaeb081e7b66b7cba562f5ddca644a.tar.gz
plus-084ac146addaeb081e7b66b7cba562f5ddca644a.tar.bz2
plus-084ac146addaeb081e7b66b7cba562f5ddca644a.tar.xz
plus-084ac146addaeb081e7b66b7cba562f5ddca644a.zip
fix manaplus2/manaplus#9 : limited the check to tmwa, not needed for evol/herc
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/chatwindow.cpp7
1 files changed, 5 insertions, 2 deletions
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");