Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-08 12:58:05 +0000
committerStijn Buys <ingar@osirion.org>2008-11-08 12:58:05 +0000
commitdbb28ef3422bf2442e15d75fd52180cfb9b40102 (patch)
tree16b9f8bb8b5bfa64f9676e4eed134dbe15299c90 /src/core/gameconnection.cc
parente3512a1b55e97b2eba62847e6e28065eec24c92f (diff)
adds rcon, rconpassword and sv_password
Diffstat (limited to 'src/core/gameconnection.cc')
-rw-r--r--src/core/gameconnection.cc8
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())