[Alias] Strip extra whitespace from fake command messages (#4871)

This commit is contained in:
Flame442 2021-04-02 20:33:29 -04:00 committed by GitHub
parent a919610588
commit 7c853db9f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ class Alias(commands.Cog):
# noinspection PyDunderSlots # noinspection PyDunderSlots
new_message.content = "{}{} {}".format( new_message.content = "{}{} {}".format(
prefix, command, " ".join(args[trackform.max + 1 :]) prefix, command, " ".join(args[trackform.max + 1 :])
) ).strip()
await self.bot.process_commands(new_message) await self.bot.process_commands(new_message)
async def paginate_alias_list( async def paginate_alias_list(