aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 071ec6c98..76cab5a74 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -149,6 +149,9 @@ def _get_word(self) -> str:
log.trace(f"{arg} is not a str, casting to str.")
arg = str(arg)
+ # Allow using double quotes within triple double quotes
+ arg = arg.replace('"', '\\"')
+
# Adding double quotes to every argument
log.trace(f"Wrapping all args in double quotes.")
new_args.append(f'"{arg}"')