diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-08 12:58:05 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-08 12:58:05 +0000 |
commit | dbb28ef3422bf2442e15d75fd52180cfb9b40102 (patch) | |
tree | 16b9f8bb8b5bfa64f9676e4eed134dbe15299c90 /src/core/gameconnection.cc | |
parent | e3512a1b55e97b2eba62847e6e28065eec24c92f (diff) |
adds rcon, rconpassword and sv_password
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()) |