summaryrefslogtreecommitdiff
path: root/src/net/manaserv/chatserver/chatserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/manaserv/chatserver/chatserver.cpp')
-rw-r--r--src/net/manaserv/chatserver/chatserver.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/net/manaserv/chatserver/chatserver.cpp b/src/net/manaserv/chatserver/chatserver.cpp
index f0f5faf2..23eee3e6 100644
--- a/src/net/manaserv/chatserver/chatserver.cpp
+++ b/src/net/manaserv/chatserver/chatserver.cpp
@@ -24,31 +24,34 @@
#include "internal.h"
#include "net/manaserv/connection.h"
+#include "net/manaserv/messageout.h"
#include "net/manaserv/protocol.h"
-#include "net/messageout.h"
+namespace ManaServ {
-using Net::ChatServer::connection;
+using ChatServer::connection;
-void Net::ChatServer::connect(Net::Connection *connection,
+void ChatServer::connect(Connection *connection,
const std::string &token)
{
- Net::ChatServer::connection = connection;
+ ChatServer::connection = connection;
MessageOut msg(PCMSG_CONNECT);
msg.writeString(token, 32);
connection->send(msg);
}
-void Net::ChatServer::logout()
+void ChatServer::logout()
{
MessageOut msg(PCMSG_DISCONNECT);
connection->send(msg);
}
-void Net::ChatServer::announce(const std::string &text)
+void ChatServer::announce(const std::string &text)
{
MessageOut msg(PCMSG_ANNOUNCE);
msg.writeString(text);
connection->send(msg);
}
+
+}