summaryrefslogtreecommitdiffstats
path: root/src/game/server/status.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server/status.cc')
-rw-r--r--src/game/server/status.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/game/server/status.cc b/src/game/server/status.cc
deleted file mode 100644
index 6b64719..0000000
--- a/src/game/server/status.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "server/pch.hh"
-
-#include "server/status.hh"
-
-#include "core/config.hh"
-
-#include "shared/protocol.hh"
-#include "shared/splash.hh"
-
-#include "server/globals.hh"
-#include "server/sessions.hh"
-
-static void on_status_request_packet(const protocol::StatusRequest& packet)
-{
- protocol::StatusResponse response;
- response.version = protocol::VERSION;
- response.max_players = sessions::max_players.get_value();
- response.num_players = sessions::num_players;
- response.motd = splash::get();
- protocol::send(packet.peer, protocol::encode(response));
-}
-
-void status::init(void)
-{
- globals::dispatcher.sink<protocol::StatusRequest>().connect<&on_status_request_packet>();
-}