summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
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 1748f0c7a..fad5f2c1b 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -90,6 +90,7 @@ ChatHandler::ChatHandler() :
SMSG_CHAT_SILENCE,
SMSG_CHAT_TALKIE_BOX,
SMSG_BATTLE_CHAT_MESSAGE,
+ SMSG_SCRIPT_MESSAGE,
0
};
handledMessages = _messages;
@@ -226,6 +227,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
processBattleChatMessage(msg);
break;
+ case SMSG_SCRIPT_MESSAGE:
+ processScriptMessage(msg);
+ break;
+
default:
break;
}
@@ -926,5 +931,12 @@ void ChatHandler::processBattleChatMessage(Net::MessageIn &msg)
msg.readString(sz, "message");
}
+void ChatHandler::processScriptMessage(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ const int sz = msg.readInt16("len") - 8;
+ msg.readInt32("being id");
+ msg.readString(sz, "message");
+}
} // namespace EAthena