From 073d5344199b0c95fcd0e471dbcd183ac0dbc6d8 Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 8 Sep 2018 00:36:00 +0200 Subject: [PATCH] Fix quote parsing --- src/pluralkit/bot/commands/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pluralkit/bot/commands/__init__.py b/src/pluralkit/bot/commands/__init__.py index 27f0a114..9b7114ff 100644 --- a/src/pluralkit/bot/commands/__init__.py +++ b/src/pluralkit/bot/commands/__init__.py @@ -14,7 +14,7 @@ logger = logging.getLogger("pluralkit.bot.commands") def next_arg(arg_string: str) -> Tuple[str, Optional[str]]: if arg_string.startswith("\""): - end_quote = arg_string.find("\"", start=1) + end_quote = arg_string[1:].find("\"") + 1 if end_quote > 0: return arg_string[1:end_quote], arg_string[end_quote + 1:].strip() else: