mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-28 08:41:29 +00:00
🐛 fix on_command block cannot set
This commit is contained in:
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user