summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-10 23:51:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-10 23:51:32 +0300
commitab0224bbddaa1aef3303f9955356e0b4be40f5b0 (patch)
treef2657bdce0388fbe4d345b1ed91de56aecd635e4 /src/net
parent3c5824865fdd3601f0491ab8f90b47c49230695b (diff)
downloadmanaplus-ab0224bbddaa1aef3303f9955356e0b4be40f5b0.tar.gz
manaplus-ab0224bbddaa1aef3303f9955356e0b4be40f5b0.tar.bz2
manaplus-ab0224bbddaa1aef3303f9955356e0b4be40f5b0.tar.xz
manaplus-ab0224bbddaa1aef3303f9955356e0b4be40f5b0.zip
eathena: add partial support for packet SMSG_CHAT_SILENCE 0x014b.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/chathandler.cpp13
-rw-r--r--src/net/eathena/chathandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index ea56d8214..36a8035c5 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -87,6 +87,7 @@ ChatHandler::ChatHandler() :
SMSG_CHAT_SETTINGS,
SMSG_CHAT_ROLE_CHANGE,
SMSG_MANNER_MESSAGE,
+ SMSG_CHAT_SILENCE,
0
};
handledMessages = _messages;
@@ -211,6 +212,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
processMannerMessage(msg);
break;
+ case SMSG_CHAT_SILENCE:
+ processChatSilence(msg);
+ break;
+
default:
break;
}
@@ -879,6 +884,7 @@ void ChatHandler::processMVPExp(Net::MessageIn &msg)
void ChatHandler::processMVPNoItem(Net::MessageIn &msg)
{
+ UNIMPLIMENTEDPACKET;
}
void ChatHandler::processMannerMessage(Net::MessageIn &msg)
@@ -887,4 +893,11 @@ void ChatHandler::processMannerMessage(Net::MessageIn &msg)
msg.readInt32("type");
}
+void ChatHandler::processChatSilence(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readUInt8("type");
+ msg.readString(24, "gm name");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h
index bf2048a40..00a901ac7 100644
--- a/src/net/eathena/chathandler.h
+++ b/src/net/eathena/chathandler.h
@@ -147,6 +147,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler
static void processMVPNoItem(Net::MessageIn &msg);
static void processMannerMessage(Net::MessageIn &msg);
+
+ static void processChatSilence(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 0e1fc2cd7..5994e8e11 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -363,6 +363,7 @@
#define SMSG_ONLINE_LIST 0x0b10
#define SMSG_MANNER_MESSAGE 0x014a
+#define SMSG_CHAT_SILENCE 0x014b
/**********************************
* Packets from client to server *