summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chatrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/chatrecv.cpp')
-rw-r--r--src/net/tmwa/chatrecv.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/tmwa/chatrecv.cpp b/src/net/tmwa/chatrecv.cpp
index 116674c53..0d90a6f99 100644
--- a/src/net/tmwa/chatrecv.cpp
+++ b/src/net/tmwa/chatrecv.cpp
@@ -251,8 +251,10 @@ void ChatRecv::processWhisperContinue(const std::string &nick,
}
else
{
- if ((chatWindow != nullptr) && (showMsg || (chatMsg.find("!selllist") != 0
- && chatMsg.find("!buylist") != 0)))
+ if (chatWindow != nullptr &&
+ (showMsg ||
+ (chatMsg.find("!selllist") != 0 &&
+ chatMsg.find("!buylist") != 0)))
{
chatWindow->addWhisper(nick, chatMsg);
}