summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-29 22:35:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-30 16:37:01 +0300
commitc0d2d172cf6397329b0474e8521af666edc6f774 (patch)
treea7f8bfda6fa4ac0ce020e8b66c1d819d83d27ece /src/net/ea/chathandler.cpp
parent03763e4b290b80bc5606568b168f8605d7aa1631 (diff)
downloadmv-c0d2d172cf6397329b0474e8521af666edc6f774.tar.gz
mv-c0d2d172cf6397329b0474e8521af666edc6f774.tar.bz2
mv-c0d2d172cf6397329b0474e8521af666edc6f774.tar.xz
mv-c0d2d172cf6397329b0474e8521af666edc6f774.zip
Remove additional parameters from processBeingChat 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 2f7e0f661..b92948335 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -37,6 +37,8 @@
#include "net/messagein.h"
+#include "net/ea/eaprotocol.h"
+
#include "resources/notifytypes.h"
#include "utils/gettext.h"
@@ -264,13 +266,13 @@ void ChatHandler::processWhisper(Net::MessageIn &msg) const
BLOCK_END("ChatHandler::processWhisper")
}
-void ChatHandler::processBeingChat(Net::MessageIn &msg,
- const bool channels) const
+void ChatHandler::processBeingChat(Net::MessageIn &msg) const
{
if (!actorManager)
return;
BLOCK_START("ChatHandler::processBeingChat")
+ const bool channels = msg.getId() == SMSG_BEING_CHAT2;
int chatMsgLength = msg.readInt16() - 8;
Being *const being = actorManager->findBeing(msg.readInt32());
if (!being)