From 5c5799c21faa7f702bf52b4022e13081883ee53f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 25 Jul 2021 12:48:27 +0200 Subject: [PATCH] - quote argument for sending cheats from the chat editor. --- source/core/ct_chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/ct_chat.cpp b/source/core/ct_chat.cpp index 6e04e7e49..663754c9e 100644 --- a/source/core/ct_chat.cpp +++ b/source/core/ct_chat.cpp @@ -326,7 +326,7 @@ static void ShoveChatStr (const char *str, uint8_t who) if (*str == '#') { - C_DoCommand(FStringf("activatecheat %s", str + 1)); + C_DoCommand(FStringf("activatecheat \"%s\"", str + 1)); } else {