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.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 5eec14491..632997081 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -63,6 +63,7 @@ ChatHandler::ChatHandler() :
SMSG_FORMAT_MESSAGE,
SMSG_FORMAT_MESSAGE_NUMBER,
SMSG_FORMAT_MESSAGE_SKILL,
+ SMSG_CHAT_DISPLAY,
0
};
handledMessages = _messages;
@@ -127,6 +128,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
processChatIgnoreList(msg);
break;
+ case SMSG_CHAT_DISPLAY:
+ processChatDisplay(msg);
+ break;
+
default:
break;
}
@@ -444,4 +449,15 @@ void ChatHandler::processChatIgnoreList(Net::MessageIn &msg)
msg.readString(24, "nick");
}
+void ChatHandler::processChatDisplay(Net::MessageIn &msg)
+{
+ const int len = msg.readInt16("len") - 17;
+ msg.readInt32("owner account id");
+ msg.readInt32("char id");
+ msg.readInt16("max users");
+ msg.readInt16("current users");
+ msg.readUInt8("type");
+ msg.readString(len, "title");
+}
+
} // namespace EAthena