summaryrefslogtreecommitdiff
path: root/src
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
parent9488e6a43b9d016a9b5f2e003ff927cc1bf11a4b (diff)
downloadManaVerse-084ac146addaeb081e7b66b7cba562f5ddca644a.tar.gz
ManaVerse-084ac146addaeb081e7b66b7cba562f5ddca644a.tar.bz2
ManaVerse-084ac146addaeb081e7b66b7cba562f5ddca644a.tar.xz
ManaVerse-084ac146addaeb081e7b66b7cba562f5ddca644a.zip
fix manaplus2/manaplus#9 : limited the check to tmwa, not needed for evol/herc
Diffstat (limited to 'src')
-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");