summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/adminhandler.cpp8
-rw-r--r--src/net/eathena/adminhandler.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index 0b2d91063..662dee9ed 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -67,27 +67,27 @@ void AdminHandler::handleMessage(Net::MessageIn &msg)
}
}
-void AdminHandler::announce(const std::string &text)
+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()));
}
-void AdminHandler::localAnnounce(const std::string &text)
+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()));
}
-void AdminHandler::hide(const bool h A_UNUSED)
+void AdminHandler::hide(const bool h A_UNUSED) const
{
MessageOut outMsg(CMSG_ADMIN_HIDE);
outMsg.writeInt32(0); //unused
}
-void AdminHandler::kick(const int playerId)
+void AdminHandler::kick(const int playerId) const
{
MessageOut outMsg(CMSG_ADMIN_KICK);
outMsg.writeInt32(playerId);
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index e6ba376f3..cbbb9d374 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -42,13 +42,13 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler
void handleMessage(Net::MessageIn &msg);
- void announce(const std::string &text);
+ void announce(const std::string &text) const;
- void localAnnounce(const std::string &text);
+ void localAnnounce(const std::string &text) const;
- void hide(const bool h);
+ void hide(const bool h) const;
- void kick(const int playerId);
+ void kick(const int playerId) const;
};
} // namespace EAthena