Skip to content

Commit

Permalink
Update message.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf authored Jan 4, 2025
1 parent f963af9 commit 1884ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/parser/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ async def parser(msg: Bot.MessageSession,
await msg.send_message(
msg.locale.t("parser.module.disabled.prompt", module=command_first_word,
prefix=msg.prefixes[0]))
if await msg.check_permission(),
if await msg.check_permission():
if await msg.wait_confirm(msg.locale.t("parser.module.disabled.to_enable")):
msg.data.enable(command_first_word)
await msg.send_message(msg.locale.t("core.message.module.enable.success", module=command_first_word))
Expand Down

0 comments on commit 1884ab1

Please sign in to comment.