diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-13 11:50:48 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-13 20:55:48 +0100 |
commit | abeebcba08ff2abc2993657b9043543223dce3d1 (patch) | |
tree | 4850e54c0690df454f9e3e2dcad39f7ea971f8bc /src/net/adminhandler.h | |
parent | 46ba64726b4261a4c25b579187682508d99b9e32 (diff) | |
download | mana-abeebcba08ff2abc2993657b9043543223dce3d1.tar.gz mana-abeebcba08ff2abc2993657b9043543223dce3d1.tar.bz2 mana-abeebcba08ff2abc2993657b9043543223dce3d1.tar.xz mana-abeebcba08ff2abc2993657b9043543223dce3d1.zip |
Removed no longer supported admin messages
* Removed /announce command
* Changed "Kick player" in player pop-up to kick by name
Other messages, like CMSG_ADMIN_HIDE, CMSG_ADMIN_MUTE and
CMSG_ADMIN_LOCAL_ANNOUNCE were already not used by the client. Also,
none of this was implemented for Manaserv.
Diffstat (limited to 'src/net/adminhandler.h')
-rw-r--r-- | src/net/adminhandler.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h index ea436710..492918a7 100644 --- a/src/net/adminhandler.h +++ b/src/net/adminhandler.h @@ -22,36 +22,20 @@ #ifndef ADMINHANDLER_H #define ADMINHANDLER_H -#include <iosfwd> +#include <string> namespace Net { class AdminHandler { public: - virtual ~AdminHandler() {} - - virtual void announce(const std::string &text) = 0; - - virtual void localAnnounce(const std::string &text) = 0; - - virtual void hide(bool hide) = 0; - - virtual void kick(int playerId) = 0; + virtual ~AdminHandler() = default; virtual void kick(const std::string &name) = 0; - virtual void ban(int playerId) = 0; - virtual void ban(const std::string &name) = 0; - virtual void unban(int playerId) = 0; - virtual void unban(const std::string &name) = 0; - - virtual void mute(int playerId, int type, int limit) = 0; - - // TODO }; } // namespace Net |