From dbb28ef3422bf2442e15d75fd52180cfb9b40102 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 8 Nov 2008 12:58:05 +0000 Subject: adds rcon, rconpassword and sv_password --- src/core/netconnection.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/netconnection.cc') 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) { -- cgit v1.2.3