mirror of
https://github.com/Refound-445/nonebot-plugin-nailongremove.git
synced 2025-11-04 21:22:43 +08:00
fix
This commit is contained in:
parent
7f03edd460
commit
b074635541
@ -176,7 +176,7 @@ async def handle_function(
|
||||
functions.append(lambda: recall(bot, ev))
|
||||
if config.nailong_mute_seconds > 0:
|
||||
functions.append(lambda: mute(bot, ev, config.nailong_mute_seconds))
|
||||
punish_ok = (not functions) or (await execute_functions_any_ok(functions))
|
||||
punish_ok = functions and (await execute_functions_any_ok(functions))
|
||||
|
||||
template_str = config.nailong_tip if punish_ok else config.nailong_failed_tip
|
||||
await (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user