diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-11-03 12:06:48 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-11-03 12:06:48 -0700 |
commit | e07e2a6db902f2ce0095b65708a98fa4dbf40aa0 (patch) | |
tree | b91b3e3d3f06199dcc34e32834941964a263e0be /src/net/manaserv/adminhandler.cpp | |
parent | e2897e4a7cb7eb0c4a7e46d72a9a19b909368c26 (diff) | |
download | mana-e07e2a6db902f2ce0095b65708a98fa4dbf40aa0.tar.gz mana-e07e2a6db902f2ce0095b65708a98fa4dbf40aa0.tar.bz2 mana-e07e2a6db902f2ce0095b65708a98fa4dbf40aa0.tar.xz mana-e07e2a6db902f2ce0095b65708a98fa4dbf40aa0.zip |
Simplify ManaServ netcode some more
Diffstat (limited to 'src/net/manaserv/adminhandler.cpp')
-rw-r--r-- | src/net/manaserv/adminhandler.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/net/manaserv/adminhandler.cpp b/src/net/manaserv/adminhandler.cpp index abdf86ef..e77d2bec 100644 --- a/src/net/manaserv/adminhandler.cpp +++ b/src/net/manaserv/adminhandler.cpp @@ -21,12 +21,16 @@ #include "net/manaserv/adminhandler.h" -#include "net/manaserv/chatserver/chatserver.h" +#include "net/manaserv/connection.h" +#include "net/manaserv/messageout.h" +#include "net/manaserv/protocol.h" Net::AdminHandler *adminHandler; namespace ManaServ { +extern Connection *chatServerConnection; + AdminHandler::AdminHandler() { adminHandler = this; @@ -34,7 +38,9 @@ AdminHandler::AdminHandler() void AdminHandler::announce(const std::string &text) { - ManaServ::ChatServer::announce(text); + MessageOut msg(PCMSG_ANNOUNCE); + msg.writeString(text); + chatServerConnection->send(msg); } void AdminHandler::localAnnounce(const std::string &text) |