mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-05 18:58:53 -05:00
Fix an issue with alias quote detection (#6582)
Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
parent
029029e9a5
commit
b177c80b4e
@ -59,7 +59,11 @@ class AliasEntry:
|
||||
extra = []
|
||||
while not view.eof:
|
||||
prev = view.index
|
||||
try:
|
||||
word = view.get_quoted_word()
|
||||
except discord.ext.commands.errors.UnexpectedQuoteError:
|
||||
view.skip_ws()
|
||||
continue
|
||||
if len(word) < view.index - prev:
|
||||
word = "".join((view.buffer[prev], word, view.buffer[view.index - 1]))
|
||||
extra.append(word.strip(" "))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user