diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 12 |
1 files changed, 6 insertions, 6 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 |