From acd557f9472c711fe92b9c158ec336abf688bf7b Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 3 Nov 2009 10:18:25 -0700 Subject: Remove more _SUPPORT ifdefs and do some cleanup --- src/net/ea/adminhandler.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/net/ea/adminhandler.cpp') diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp index e1099a4d..62fe9ea8 100644 --- a/src/net/ea/adminhandler.cpp +++ b/src/net/ea/adminhandler.cpp @@ -21,11 +21,10 @@ #include "net/ea/adminhandler.h" -#include "net/ea/chathandler.h" -#include "net/ea/protocol.h" +#include "net/chathandler.h" +#include "net/net.h" -#include "net/messagein.h" -#include "net/messageout.h" +#include "net/ea/protocol.h" #include "being.h" #include "beingmanager.h" @@ -55,7 +54,7 @@ AdminHandler::AdminHandler() adminHandler = this; } -void AdminHandler::handleMessage(MessageIn &msg) +void AdminHandler::handleMessage(Net::MessageIn &msg) { int id; switch (msg.getId()) @@ -118,7 +117,7 @@ void AdminHandler::unban(int playerId) void AdminHandler::unban(const std::string &name) { - chatHandler->talk("@unban " + name); + Net::getChatHandler()->talk("@unban " + name); } void AdminHandler::mute(int playerId, int type, int limit) -- cgit v1.2.3-70-g09d2