🐛 fix on_command block cannot set

This commit is contained in:
yanyongyu 2021-12-29 22:23:35 +08:00
parent 4bd2156929
commit af03188f88

View File

@ -391,8 +391,9 @@ def on_command(
"""
commands = set([cmd]) | (aliases or set())
block = kwargs.pop("block", False)
return on_message(
command(*commands) & rule, block=False, **kwargs, _depth=_depth + 1
command(*commands) & rule, block=block, **kwargs, _depth=_depth + 1
)