summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-26 01:58:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-26 01:58:10 +0300
commit170b469cbcf4adcd82604a6b2efd5a0630ef3fb5 (patch)
treed37c726898a3a283d5f750b536dbe32bb326463f /src/net/ea
parent43be2ecae97034f764460a5932ca97e6354da89e (diff)
downloadplus-170b469cbcf4adcd82604a6b2efd5a0630ef3fb5.tar.gz
plus-170b469cbcf4adcd82604a6b2efd5a0630ef3fb5.tar.bz2
plus-170b469cbcf4adcd82604a6b2efd5a0630ef3fb5.tar.xz
plus-170b469cbcf4adcd82604a6b2efd5a0630ef3fb5.zip
add missing const to adminhandler.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/adminhandler.cpp14
-rw-r--r--src/net/ea/adminhandler.h14
2 files changed, 14 insertions, 14 deletions
diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp
index 7a07cb4a2..79eff8e68 100644
--- a/src/net/ea/adminhandler.cpp
+++ b/src/net/ea/adminhandler.cpp
@@ -33,38 +33,38 @@ namespace Ea
const std::string GENERAL_CHANNEL = "";
-void AdminHandler::kickName(const std::string &name)
+void AdminHandler::kickName(const std::string &name) const
{
Net::getChatHandler()->talk("@kick " + name, GENERAL_CHANNEL);
}
-void AdminHandler::ban(const int playerId A_UNUSED)
+void AdminHandler::ban(const int playerId A_UNUSED) const
{
// Not supported
}
-void AdminHandler::banName(const std::string &name)
+void AdminHandler::banName(const std::string &name) const
{
Net::getChatHandler()->talk("@ban " + name, GENERAL_CHANNEL);
}
-void AdminHandler::unban(const int playerId A_UNUSED)
+void AdminHandler::unban(const int playerId A_UNUSED) const
{
// Not supported
}
-void AdminHandler::unbanName(const std::string &name)
+void AdminHandler::unbanName(const std::string &name) const
{
Net::getChatHandler()->talk("@unban " + name, GENERAL_CHANNEL);
}
void AdminHandler::mute(const int playerId A_UNUSED, const int type A_UNUSED,
- const int limit A_UNUSED)
+ const int limit A_UNUSED) const
{
return;
}
-void AdminHandler::warp(const std::string &map, const int x, const int y)
+void AdminHandler::warp(const std::string &map, const int x, const int y) const
{
Net::getChatHandler()->talk(strprintf(
"@warp %s %d %d", map.c_str(), x, y), GENERAL_CHANNEL);
diff --git a/src/net/ea/adminhandler.h b/src/net/ea/adminhandler.h
index 68b7c303e..4100ce4fc 100644
--- a/src/net/ea/adminhandler.h
+++ b/src/net/ea/adminhandler.h
@@ -40,21 +40,21 @@ class AdminHandler : public Net::AdminHandler
virtual ~AdminHandler()
{ }
- virtual void kickName(const std::string &name);
+ virtual void kickName(const std::string &name) const;
- virtual void ban(const int playerId);
+ virtual void ban(const int playerId) const;
- virtual void banName(const std::string &name);
+ virtual void banName(const std::string &name) const;
- virtual void unban(const int playerId);
+ virtual void unban(const int playerId) const;
- virtual void unbanName(const std::string &name);
+ virtual void unbanName(const std::string &name) const;
virtual void mute(const int playerId, const int type,
- const int limit);
+ const int limit) const;
virtual void warp(const std::string &map,
- const int x, const int y);
+ const int x, const int y) const;
};
} // namespace Ea