mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-03-07 04:38:35 -05:00
Fix fuzzy command search not ignoring blacklisted users (#6594)
This commit is contained in:
@@ -388,6 +388,9 @@ def init_events(bot, cli_flags):
|
|||||||
message = inline(_("Error in command '{command}'."))
|
message = inline(_("Error in command '{command}'."))
|
||||||
await ctx.send(message.replace("{command}", ctx.command.qualified_name))
|
await ctx.send(message.replace("{command}", ctx.command.qualified_name))
|
||||||
elif isinstance(error, commands.CommandNotFound):
|
elif isinstance(error, commands.CommandNotFound):
|
||||||
|
if not await bot.message_eligible_as_command(ctx.message):
|
||||||
|
return
|
||||||
|
|
||||||
help_settings = await HelpSettings.from_context(ctx)
|
help_settings = await HelpSettings.from_context(ctx)
|
||||||
fuzzy_commands = await fuzzy_command_search(
|
fuzzy_commands = await fuzzy_command_search(
|
||||||
ctx,
|
ctx,
|
||||||
|
|||||||
Reference in New Issue
Block a user