diff options
author | Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> | 2022-04-20 20:01:13 +0200 |
---|---|---|
committer | Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> | 2022-04-20 20:01:13 +0200 |
commit | 981e93818bf0c6011bf2b1a803e0a9bc3e1f63d9 (patch) | |
tree | 44aac46d521ea891dd9ffea52480561e1d1dd7db | |
parent | 44d1d694982d2a4f302bf7155d4582628f9f32f4 (diff) | |
download | NorthstarLauncher-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
-rw-r--r-- | NorthstarDedicatedTest/sv_rcon.cpp | 2 |
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(); } |