summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-19 11:05:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-19 11:05:44 +0300
commit78d916e95061fb3bec4ba7791a2f20bcbeaecb3c (patch)
tree43b9335fcc92e21796f8861edefad94471de5fb6 /src/net/eathena/chathandler.cpp
parent1e0a3842186c86e40eff6fa7894e578ae948d179 (diff)
downloadmv-78d916e95061fb3bec4ba7791a2f20bcbeaecb3c.tar.gz
mv-78d916e95061fb3bec4ba7791a2f20bcbeaecb3c.tar.bz2
mv-78d916e95061fb3bec4ba7791a2f20bcbeaecb3c.tar.xz
mv-78d916e95061fb3bec4ba7791a2f20bcbeaecb3c.zip
eathena: add packet CMSG_CHAT_JOIN 0x00d9.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r--src/net/eathena/chathandler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 7c08cbc28..d09234af3 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -469,4 +469,15 @@ void ChatHandler::processChatDisplay(Net::MessageIn &msg)
dstBeing->setChat(obj);
}
+void ChatHandler::joinChat(const ChatObject *const chat,
+ const std::string &password) const
+{
+ if (!chat)
+ return;
+
+ MessageOut outMsg(CMSG_CHAT_JOIN);
+ outMsg.writeInt32(chat->chatId, "chat id");
+ outMsg.writeString(password, 8, "password");
+}
+
} // namespace EAthena