summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 14:24:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 14:24:52 +0300
commit90135ee39f6d28d5a7e1cdc58c3a90533aa6fa25 (patch)
tree779635454474bd6bd4c17e0d3d29b3386a2cc5ca
parent06972c2281cc8d13834e022639699e2dc03cb639 (diff)
downloadmanaplus-90135ee39f6d28d5a7e1cdc58c3a90533aa6fa25.tar.gz
manaplus-90135ee39f6d28d5a7e1cdc58c3a90533aa6fa25.tar.bz2
manaplus-90135ee39f6d28d5a7e1cdc58c3a90533aa6fa25.tar.xz
manaplus-90135ee39f6d28d5a7e1cdc58c3a90533aa6fa25.zip
eathena: add partial support for packet SMSG_CHAT_TALKIE_BOX 0x0191.
-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 36a8035c5..e8d857cf2 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -88,6 +88,7 @@ ChatHandler::ChatHandler() :
SMSG_CHAT_ROLE_CHANGE,
SMSG_MANNER_MESSAGE,
SMSG_CHAT_SILENCE,
+ SMSG_CHAT_TALKIE_BOX,
0
};
handledMessages = _messages;
@@ -216,6 +217,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
processChatSilence(msg);
break;
+ case SMSG_CHAT_TALKIE_BOX:
+ processChatTalkieBox(msg);
+ break;
+
default:
break;
}
@@ -900,4 +905,11 @@ void ChatHandler::processChatSilence(Net::MessageIn &msg)
msg.readString(24, "gm name");
}
+void ChatHandler::processChatTalkieBox(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readInt32("being id");
+ msg.readString(80, "message");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h
index 00a901ac7..257df525c 100644
--- a/src/net/eathena/chathandler.h
+++ b/src/net/eathena/chathandler.h
@@ -149,6 +149,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler
static void processMannerMessage(Net::MessageIn &msg);
static void processChatSilence(Net::MessageIn &msg);
+
+ static void processChatTalkieBox(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 21f2b825d..da873bda8 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -281,6 +281,7 @@
#define SMSG_CHAT_SETTINGS 0x00df
#define SMSG_CHAT_ROLE_CHANGE 0x00e1
#define SMSG_CHAT_JOIN_CHANNEL 0x0b08
+#define SMSG_CHAT_TALKIE_BOX 0x0191
#define SMSG_MAIL_OPEN_WINDOW 0x0260