aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/sv_rcon.cpp
diff options
context:
space:
mode:
authorKawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>2022-04-20 20:01:13 +0200
committerKawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>2022-04-20 20:01:13 +0200
commit981e93818bf0c6011bf2b1a803e0a9bc3e1f63d9 (patch)
tree44aac46d521ea891dd9ffea52480561e1d1dd7db /NorthstarDedicatedTest/sv_rcon.cpp
parent44d1d694982d2a4f302bf7155d4582628f9f32f4 (diff)
downloadNorthstarLauncher-981e93818bf0c6011bf2b1a803e0a9bc3e1f63d9.tar.gz
NorthstarLauncher-981e93818bf0c6011bf2b1a803e0a9bc3e1f63d9.zip
Fix script command not working on server
Quote marks where only necessary when passing input directly to CCommand. Small mistake
Diffstat (limited to 'NorthstarDedicatedTest/sv_rcon.cpp')
-rw-r--r--NorthstarDedicatedTest/sv_rcon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/sv_rcon.cpp b/NorthstarDedicatedTest/sv_rcon.cpp
index 936a7811..82649634 100644
--- a/NorthstarDedicatedTest/sv_rcon.cpp
+++ b/NorthstarDedicatedTest/sv_rcon.cpp
@@ -388,7 +388,7 @@ void CRConServer::Execute(const cl_rcon::request& cl_request) const
}
else // Execute command with "<val>".
{
- std::string svExec = cl_request.requestbuf() + " \"" + cl_request.requestval() + "\"";
+ std::string svExec = cl_request.requestbuf() + " " + cl_request.requestval();
Cbuf_AddText(Cbuf_GetCurrentPlayer(), svExec.c_str(), cmd_source_t::kCommandSrcCode);
Cbuf_Execute();
}