mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-06-15 16:47:42 +00:00
Fix to_me while in a session
This commit is contained in:
parent
9359904fe7
commit
0a3d07b70e
@ -482,6 +482,8 @@ async def handle_command(bot: NoneBot, ctx: Context_T) -> bool:
|
|||||||
|
|
||||||
if session.is_valid:
|
if session.is_valid:
|
||||||
logger.debug(f'Session of command {session.cmd.name} exists')
|
logger.debug(f'Session of command {session.cmd.name} exists')
|
||||||
|
# since it's in a session, the user must be talking to me
|
||||||
|
ctx['to_me'] = True
|
||||||
session.refresh(ctx, current_arg=str(ctx['message']))
|
session.refresh(ctx, current_arg=str(ctx['message']))
|
||||||
# there is no need to check permission for existing session
|
# there is no need to check permission for existing session
|
||||||
check_perm = False
|
check_perm = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user