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.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/net/tmwa/chatrecv.cpp b/src/net/tmwa/chatrecv.cpp
index 920676827..d16cd1c61 100644
--- a/src/net/tmwa/chatrecv.cpp
+++ b/src/net/tmwa/chatrecv.cpp
@@ -132,16 +132,10 @@ void ChatRecv::processGmChat(Net::MessageIn &msg)
return;
}
- if (localChatTab != nullptr &&
- chatWindow != nullptr)
- {
- std::string chatMsg = msg.readRawString(chatMsgLength, "message");
+ std::string chatMsg = msg.readRawString(chatMsgLength, "message");
+ if (localChatTab != nullptr && chatWindow != nullptr)
chatWindow->addGlobalMessage(chatMsg);
- }
- else
- {
- msg.readRawString(chatMsgLength, "message");
- }
+
BLOCK_END("ChatRecv::processChat")
}