summaryrefslogtreecommitdiff
path: root/src/net/tmwa/adminhandler.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-13 11:50:48 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-13 20:55:48 +0100
commitabeebcba08ff2abc2993657b9043543223dce3d1 (patch)
tree4850e54c0690df454f9e3e2dcad39f7ea971f8bc /src/net/tmwa/adminhandler.cpp
parent46ba64726b4261a4c25b579187682508d99b9e32 (diff)
downloadmana-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/tmwa/adminhandler.cpp')
-rw-r--r--src/net/tmwa/adminhandler.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp
index 29202eb7..ce2a8264 100644
--- a/src/net/tmwa/adminhandler.cpp
+++ b/src/net/tmwa/adminhandler.cpp
@@ -24,18 +24,15 @@
#include "actorspritemanager.h"
#include "being.h"
#include "event.h"
-#include "game.h"
#include "playerrelations.h"
#include "net/chathandler.h"
#include "net/net.h"
#include "net/tmwa/messagein.h"
-#include "net/tmwa/messageout.h"
#include "net/tmwa/protocol.h"
#include "utils/gettext.h"
-#include "utils/stringutils.h"
#include <string>
@@ -79,65 +76,19 @@ void AdminHandler::handleMessage(MessageIn &msg)
}
}
-void AdminHandler::announce(const std::string &text)
-{
- MessageOut outMsg(CMSG_ADMIN_ANNOUNCE);
- outMsg.writeInt16(text.length() + 4);
- outMsg.writeString(text, text.length());
-}
-
-void AdminHandler::localAnnounce(const std::string &text)
-{
- MessageOut outMsg(CMSG_ADMIN_LOCAL_ANNOUNCE);
- outMsg.writeInt16(text.length() + 4);
- outMsg.writeString(text, text.length());
-}
-
-void AdminHandler::hide(bool hide)
-{
- MessageOut outMsg(CMSG_ADMIN_HIDE);
- outMsg.writeInt32(0); //unused
-}
-
-void AdminHandler::kick(int playerId)
-{
- MessageOut outMsg(CMSG_ADMIN_KICK);
- outMsg.writeInt32(playerId);
-}
-
void AdminHandler::kick(const std::string &name)
{
Net::getChatHandler()->talk("@kick " + name);
}
-void AdminHandler::ban(int playerId)
-{
- // Not supported
-}
-
void AdminHandler::ban(const std::string &name)
{
Net::getChatHandler()->talk("@ban " + name);
}
-void AdminHandler::unban(int playerId)
-{
- // Not supported
-}
-
void AdminHandler::unban(const std::string &name)
{
Net::getChatHandler()->talk("@unban " + name);
}
-void AdminHandler::mute(int playerId, int type, int limit)
-{
- return; // Still looking into this
-
- MessageOut outMsg(CMSG_ADMIN_MUTE);
- outMsg.writeInt32(playerId);
- outMsg.writeInt8(type);
- outMsg.writeInt16(limit);
-}
-
} // namespace TmwAthena