summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-19 14:26:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-19 14:26:20 +0300
commit4560d6660217598df26631496ca666793b6be3f5 (patch)
treed51365b3495fd6a4a828699bec859daa5a5248b4 /src/net/eathena/chathandler.cpp
parent23311af88da21e9f704069edca9081c49e10c872 (diff)
downloadmanaplus-4560d6660217598df26631496ca666793b6be3f5.tar.gz
manaplus-4560d6660217598df26631496ca666793b6be3f5.tar.bz2
manaplus-4560d6660217598df26631496ca666793b6be3f5.tar.xz
manaplus-4560d6660217598df26631496ca666793b6be3f5.zip
eathena: add partial support for packet SMSG_CHAT_JOIN_ACK 0x00db.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r--src/net/eathena/chathandler.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index d09234af3..6ed5dc30c 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -68,6 +68,7 @@ ChatHandler::ChatHandler() :
SMSG_FORMAT_MESSAGE_NUMBER,
SMSG_FORMAT_MESSAGE_SKILL,
SMSG_CHAT_DISPLAY,
+ SMSG_CHAT_JOIN_ACK,
0
};
handledMessages = _messages;
@@ -136,6 +137,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
processChatDisplay(msg);
break;
+ case SMSG_CHAT_JOIN_ACK:
+ processChatJoinAck(msg);
+ break;
+
default:
break;
}
@@ -480,4 +485,15 @@ void ChatHandler::joinChat(const ChatObject *const chat,
outMsg.writeString(password, 8, "password");
}
+void ChatHandler::processChatJoinAck(Net::MessageIn &msg)
+{
+ const int count = msg.readInt16("len") - 8;
+ msg.readInt32("chat id");
+ for (int f = 0; f < count; f ++)
+ {
+ msg.readInt32("role");
+ msg.readString(24, "name");
+ }
+}
+
} // namespace EAthena