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.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index e8d857cf2..1748f0c7a 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -89,6 +89,7 @@ ChatHandler::ChatHandler() :
SMSG_MANNER_MESSAGE,
SMSG_CHAT_SILENCE,
SMSG_CHAT_TALKIE_BOX,
+ SMSG_BATTLE_CHAT_MESSAGE,
0
};
handledMessages = _messages;
@@ -221,6 +222,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
processChatTalkieBox(msg);
break;
+ case SMSG_BATTLE_CHAT_MESSAGE:
+ processBattleChatMessage(msg);
+ break;
+
default:
break;
}
@@ -912,4 +917,14 @@ void ChatHandler::processChatTalkieBox(Net::MessageIn &msg)
msg.readString(80, "message");
}
+void ChatHandler::processBattleChatMessage(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ const int sz = msg.readInt16("len") - 24 - 8;
+ msg.readInt32("account id");
+ msg.readString(24, "nick");
+ msg.readString(sz, "message");
+}
+
+
} // namespace EAthena