summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-19 14:46:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-19 14:46:46 +0300
commit2c2a9956f8271fc6a1ac0ff978ceb1c57403f849 (patch)
tree195aa4e30ccd75bf6667168d69ad01bf316fd7d6 /src/net/eathena/chathandler.cpp
parent4560d6660217598df26631496ca666793b6be3f5 (diff)
downloadmanaplus-2c2a9956f8271fc6a1ac0ff978ceb1c57403f849.tar.gz
manaplus-2c2a9956f8271fc6a1ac0ff978ceb1c57403f849.tar.bz2
manaplus-2c2a9956f8271fc6a1ac0ff978ceb1c57403f849.tar.xz
manaplus-2c2a9956f8271fc6a1ac0ff978ceb1c57403f849.zip
eathena: add partial support for packet SMSG_CHAT_LEAVE 0x00dd.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r--src/net/eathena/chathandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 6ed5dc30c..d03e3b304 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -69,6 +69,7 @@ ChatHandler::ChatHandler() :
SMSG_FORMAT_MESSAGE_SKILL,
SMSG_CHAT_DISPLAY,
SMSG_CHAT_JOIN_ACK,
+ SMSG_CHAT_LEAVE,
0
};
handledMessages = _messages;
@@ -141,6 +142,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
processChatJoinAck(msg);
break;
+ case SMSG_CHAT_LEAVE:
+ processChatLeave(msg);
+ break;
+
default:
break;
}
@@ -496,4 +501,11 @@ void ChatHandler::processChatJoinAck(Net::MessageIn &msg)
}
}
+void ChatHandler::processChatLeave(Net::MessageIn &msg)
+{
+ msg.readInt16("users");
+ msg.readString(24, "name");
+ msg.readUInt8("flag"); // 0 - left, 1 - kicked
+}
+
} // namespace EAthena