summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-03 23:18:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-03 23:19:21 +0300
commit75bcf85c5bfa0aca83cffbdded7370c532319f0b (patch)
tree8c26c0b7f31e92d54ab2afc2297f65864e8b896a /src/gui/windows
parenta2100778f2930042fea64cd3edc86b986da5d5da (diff)
downloadmanaplus-75bcf85c5bfa0aca83cffbdded7370c532319f0b.tar.gz
manaplus-75bcf85c5bfa0aca83cffbdded7370c532319f0b.tar.bz2
manaplus-75bcf85c5bfa0aca83cffbdded7370c532319f0b.tar.xz
manaplus-75bcf85c5bfa0aca83cffbdded7370c532319f0b.zip
If trade tab disabled, try show TRADE messages in general tab.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/chatwindow.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index e5e80e02e..713db36fa 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -1629,6 +1629,14 @@ bool ChatWindow::resortChatLog(std::string line,
ignoreRecord,
tryRemoveColors);
}
+ else if (localChatTab)
+ {
+ line = line.erase(idx + 2, 2);
+ localChatTab->chatLog(prefix + line,
+ own,
+ ignoreRecord,
+ tryRemoveColors);
+ }
return false;
}
}