summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-01 17:00:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:54 +0300
commit85a76ba64399e558cfb6f5982ac9496fda437bf3 (patch)
tree2f788dbb72531c4a6959d0dc883d8b368053c9a7 /src
parenta0ef056695ad6632cb7c0de13320f65847d2c88a (diff)
downloadmanaverse-85a76ba64399e558cfb6f5982ac9496fda437bf3.tar.gz
manaverse-85a76ba64399e558cfb6f5982ac9496fda437bf3.tar.bz2
manaverse-85a76ba64399e558cfb6f5982ac9496fda437bf3.tar.xz
manaverse-85a76ba64399e558cfb6f5982ac9496fda437bf3.zip
add packet comments in adminhandler.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/adminhandler.cpp12
-rw-r--r--src/net/tmwa/adminhandler.cpp12
2 files changed, 12 insertions, 12 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index 86b57a2b2..504addbd8 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -69,27 +69,27 @@ void AdminHandler::handleMessage(Net::MessageIn &msg)
void AdminHandler::announce(const std::string &text) const
{
MessageOut outMsg(CMSG_ADMIN_ANNOUNCE);
- outMsg.writeInt16(static_cast<int16_t>(text.length() + 4));
- outMsg.writeString(text, static_cast<int>(text.length()));
+ outMsg.writeInt16(static_cast<int16_t>(text.length() + 4), "len");
+ outMsg.writeString(text, static_cast<int>(text.length()), "message");
}
void AdminHandler::localAnnounce(const std::string &text) const
{
MessageOut outMsg(CMSG_ADMIN_LOCAL_ANNOUNCE);
- outMsg.writeInt16(static_cast<int16_t>(text.length() + 4));
- outMsg.writeString(text, static_cast<int>(text.length()));
+ outMsg.writeInt16(static_cast<int16_t>(text.length() + 4), "len");
+ outMsg.writeString(text, static_cast<int>(text.length()), "message");
}
void AdminHandler::hide(const bool h A_UNUSED) const
{
MessageOut outMsg(CMSG_ADMIN_HIDE);
- outMsg.writeInt32(0); // unused
+ outMsg.writeInt32(0, "unused");
}
void AdminHandler::kick(const int playerId) const
{
MessageOut outMsg(CMSG_ADMIN_KICK);
- outMsg.writeInt32(playerId);
+ outMsg.writeInt32(playerId, "account id");
}
} // namespace EAthena
diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp
index c1cc349d4..6cb0601f4 100644
--- a/src/net/tmwa/adminhandler.cpp
+++ b/src/net/tmwa/adminhandler.cpp
@@ -71,27 +71,27 @@ void AdminHandler::handleMessage(Net::MessageIn &msg)
void AdminHandler::announce(const std::string &text) const
{
MessageOut outMsg(CMSG_ADMIN_ANNOUNCE);
- outMsg.writeInt16(static_cast<int16_t>(text.length() + 4));
- outMsg.writeString(text, static_cast<int>(text.length()));
+ outMsg.writeInt16(static_cast<int16_t>(text.length() + 4), "len");
+ outMsg.writeString(text, static_cast<int>(text.length()), "message");
}
void AdminHandler::localAnnounce(const std::string &text) const
{
MessageOut outMsg(CMSG_ADMIN_LOCAL_ANNOUNCE);
- outMsg.writeInt16(static_cast<int16_t>(text.length() + 4));
- outMsg.writeString(text, static_cast<int>(text.length()));
+ outMsg.writeInt16(static_cast<int16_t>(text.length() + 4), "len");
+ outMsg.writeString(text, static_cast<int>(text.length()), "message");
}
void AdminHandler::hide(const bool h A_UNUSED) const
{
MessageOut outMsg(CMSG_ADMIN_HIDE);
- outMsg.writeInt32(0); // unused
+ outMsg.writeInt32(0, "unused");
}
void AdminHandler::kick(const int playerId) const
{
MessageOut outMsg(CMSG_ADMIN_KICK);
- outMsg.writeInt32(playerId);
+ outMsg.writeInt32(playerId, "account id");
}
} // namespace TmwAthena