diff options
Diffstat (limited to 'src/core/gameconnection.cc')
-rw-r--r-- | src/core/gameconnection.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/gameconnection.cc b/src/core/gameconnection.cc index eaafe91..7942f9e 100644 --- a/src/core/gameconnection.cc +++ b/src/core/gameconnection.cc @@ -87,6 +87,14 @@ void GameConnection::forward(std::string const &cmdline) connection_network->send_command(cmdline); } +void GameConnection::rcon(std::string const &cmdline) +{ + if (!connection_network->connected()) + return; + + connection_network->send_rcon(cmdline); +} + void GameConnection::say(std::string const &args) { if (!connection_network->connected()) |