diff options
Diffstat (limited to 'src/net/chatserver/chatserver.cpp')
-rw-r--r-- | src/net/chatserver/chatserver.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/chatserver/chatserver.cpp b/src/net/chatserver/chatserver.cpp index e6a3331d..32979ea5 100644 --- a/src/net/chatserver/chatserver.cpp +++ b/src/net/chatserver/chatserver.cpp @@ -43,6 +43,13 @@ void Net::ChatServer::connect(Net::Connection *connection, connection->send(msg); } +void Net::ChatServer::logout() +{ + MessageOut msg(PCMSG_DISCONNECT); + + connection->send(msg); +} + void Net::ChatServer::chat(short channel, const std::string &text) { MessageOut msg(PCMSG_CHAT); |