summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/eathena/chathandler.cpp11
-rw-r--r--src/net/eathena/chathandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 18cfa32cd..353d36856 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -78,6 +78,7 @@ ChatHandler::ChatHandler() :
SMSG_CHAT_JOIN_CHANNEL,
SMSG_IGNORE_NICK_ACK,
SMSG_CHAT_CREATE_ACK,
+ SMSG_CHAT_DESTROY,
0
};
handledMessages = _messages;
@@ -166,6 +167,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
processChatCreateAck(msg);
break;
+ case SMSG_CHAT_DESTROY:
+ processChatDestroy(msg);
+ break;
+
default:
break;
}
@@ -782,4 +787,10 @@ void ChatHandler::processChatCreateAck(Net::MessageIn &msg)
msg.readUInt8("flag");
}
+void ChatHandler::processChatDestroy(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readInt32("chat id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h
index 98efb4711..dff2c1cda 100644
--- a/src/net/eathena/chathandler.h
+++ b/src/net/eathena/chathandler.h
@@ -129,6 +129,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler
static void processIgnoreNickAck(Net::MessageIn &msg);
static void processChatCreateAck(Net::MessageIn &msg);
+
+ static void processChatDestroy(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index db6e430b5..ab9de464a 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -260,6 +260,7 @@
#define SMSG_CHAT_IGNORE_LIST 0x00d4
#define SMSG_CHAT_CREATE_ACK 0x00d6
#define SMSG_CHAT_DISPLAY 0x00d7
+#define SMSG_CHAT_DESTROY 0x00d8
#define SMSG_CHAT_JOIN_ACK 0x00db
#define SMSG_CHAT_LEAVE 0x00dd
#define SMSG_CHAT_JOIN_CHANNEL 0x0b08