mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-31 15:41:34 +08:00
commit
d549087db2
@ -425,7 +425,7 @@ class Matcher(metaclass=MatcherMeta):
|
|||||||
if matcher.get_target() == RECEIVE_KEY.format(id=id):
|
if matcher.get_target() == RECEIVE_KEY.format(id=id):
|
||||||
matcher.set_receive(id, event)
|
matcher.set_receive(id, event)
|
||||||
return
|
return
|
||||||
if matcher.get_receive(id):
|
if matcher.get_receive(id, ...) is not ...:
|
||||||
return
|
return
|
||||||
await matcher.reject()
|
await matcher.reject()
|
||||||
|
|
||||||
@ -469,7 +469,7 @@ class Matcher(metaclass=MatcherMeta):
|
|||||||
if matcher.get_target() == ARG_KEY.format(key=key):
|
if matcher.get_target() == ARG_KEY.format(key=key):
|
||||||
matcher.set_arg(key, event.get_message())
|
matcher.set_arg(key, event.get_message())
|
||||||
return
|
return
|
||||||
if matcher.get_arg(key):
|
if matcher.get_arg(key, ...) is not ...:
|
||||||
return
|
return
|
||||||
await matcher.reject(prompt)
|
await matcher.reject(prompt)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user