Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r--src/core/netconnection.cc9
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)
{