diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-11-03 10:18:25 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-11-03 10:18:25 -0700 |
commit | acd557f9472c711fe92b9c158ec336abf688bf7b (patch) | |
tree | 2295d13589411ee88afe16f4997bea65b4ebba94 /src/net/ea/adminhandler.cpp | |
parent | c60d3a98dbbb20621742bfd82bbaaa6b7085a8ae (diff) | |
download | mana-client-acd557f9472c711fe92b9c158ec336abf688bf7b.tar.gz mana-client-acd557f9472c711fe92b9c158ec336abf688bf7b.tar.bz2 mana-client-acd557f9472c711fe92b9c158ec336abf688bf7b.tar.xz mana-client-acd557f9472c711fe92b9c158ec336abf688bf7b.zip |
Remove more _SUPPORT ifdefs and do some cleanup
Diffstat (limited to 'src/net/ea/adminhandler.cpp')
-rw-r--r-- | src/net/ea/adminhandler.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
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) |