summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-29 23:18:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-30 16:37:02 +0300
commit194e902a7231c814a23af9e41408301f3ce413c0 (patch)
tree68249ae426bf730b5c629dd0e9524b3a73c23036 /src/net/ea/chathandler.cpp
parentc0d2d172cf6397329b0474e8521af666edc6f774 (diff)
downloadmv-194e902a7231c814a23af9e41408301f3ce413c0.tar.gz
mv-194e902a7231c814a23af9e41408301f3ce413c0.tar.bz2
mv-194e902a7231c814a23af9e41408301f3ce413c0.tar.xz
mv-194e902a7231c814a23af9e41408301f3ce413c0.zip
Remove additional parameters from processChat function.
Diffstat (limited to 'src/net/ea/chathandler.cpp')
-rw-r--r--src/net/ea/chathandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp
index b92948335..f24811966 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -345,10 +345,12 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg) const
BLOCK_END("ChatHandler::processBeingChat")
}
-void ChatHandler::processChat(Net::MessageIn &msg, const bool normalChat,
- const bool channels)
+void ChatHandler::processChat(Net::MessageIn &msg)
{
BLOCK_START("ChatHandler::processChat")
+ const bool channels = msg.getId() == SMSG_PLAYER_CHAT2;
+ const bool normalChat = msg.getId() == SMSG_PLAYER_CHAT
+ || msg.getId() == SMSG_PLAYER_CHAT2;
int chatMsgLength = msg.readInt16() - 4;
std::string channel;
if (channels)