mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 02:55:18 +08:00
🐛 fix on_command block cannot set
This commit is contained in:
parent
4bd2156929
commit
af03188f88
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user