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/netconnection.cc | |
parent | e3512a1b55e97b2eba62847e6e28065eec24c92f (diff) |
adds rcon, rconpassword and sv_password
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r-- | src/core/netconnection.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/netconnection.cc b/src/core/netconnection.cc index 704551b..ba23df3 100644 --- a/src/core/netconnection.cc +++ b/src/core/netconnection.cc @@ -373,6 +373,15 @@ void NetConnection::send_command(std::string const &cmdline) this->send_raw(msg); } +// send a "rcon" command line message to the server +void NetConnection::send_rcon(std::string const &cmdline) +{ + std::string msg("rcon "); + msg.append(cmdline); + msg += '\n'; + this->send_raw(msg); +} + // send a "say" chat message message to the server void NetConnection::send_say(std::string const &text) { |