summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-10 20:29:39 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-10 20:29:39 +0300
commit1bf045651a77b43f870236d7c64e05f47ca1861b (patch)
treedeb543cf504fc933cd6e5e13502bb716f05af2d8 /src
parent3e3efc374b93e92fd23fd8193df32c9c2d70f00a (diff)
downloadmv-1bf045651a77b43f870236d7c64e05f47ca1861b.tar.gz
mv-1bf045651a77b43f870236d7c64e05f47ca1861b.tar.bz2
mv-1bf045651a77b43f870236d7c64e05f47ca1861b.tar.xz
mv-1bf045651a77b43f870236d7c64e05f47ca1861b.zip
eathena: add partial support for packet SMSG_CHAT_ADD_MEMBER 0x00dc.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/chathandler.cpp12
-rw-r--r--src/net/eathena/chathandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index e2aa51ece..611555ba5 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -80,6 +80,7 @@ ChatHandler::ChatHandler() :
SMSG_CHAT_CREATE_ACK,
SMSG_CHAT_DESTROY,
SMSG_CHAT_JOIN_FAILED,
+ SMSG_CHAT_ADD_MEMBER,
0
};
handledMessages = _messages;
@@ -176,6 +177,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
processChatJoinFailed(msg);
break;
+ case SMSG_CHAT_ADD_MEMBER:
+ processChatAddMember(msg);
+ break;
+
default:
break;
}
@@ -804,4 +809,11 @@ void ChatHandler::processChatJoinFailed(Net::MessageIn &msg)
msg.readUInt8("flag");
}
+void ChatHandler::processChatAddMember(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readInt16("users");
+ msg.readString(24, "name");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h
index 379f2ba15..e5ea32ed4 100644
--- a/src/net/eathena/chathandler.h
+++ b/src/net/eathena/chathandler.h
@@ -133,6 +133,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler
static void processChatDestroy(Net::MessageIn &msg);
static void processChatJoinFailed(Net::MessageIn &msg);
+
+ static void processChatAddMember(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 77a27be38..e6535fda4 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -263,6 +263,7 @@
#define SMSG_CHAT_DESTROY 0x00d8
#define SMSG_CHAT_JOIN_FAILED 0x00da
#define SMSG_CHAT_JOIN_ACK 0x00db
+#define SMSG_CHAT_ADD_MEMBER 0x00dc
#define SMSG_CHAT_LEAVE 0x00dd
#define SMSG_CHAT_JOIN_CHANNEL 0x0b08