summaryrefslogtreecommitdiff
path: root/src/chathandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chathandler.cpp')
-rw-r--r--src/chathandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/chathandler.cpp b/src/chathandler.cpp
index f7505894..f3bf38b1 100644
--- a/src/chathandler.cpp
+++ b/src/chathandler.cpp
@@ -27,9 +27,8 @@
void ChatHandler::receiveMessage(NetComputer &computer, MessageIn &message)
{
- int type = message.readShort();
-
- switch (type) {
+ switch (message.getId())
+ {
case CMSG_SAY:
{
std::string text = message.readString();