diff --git a/none/command.py b/none/command.py index 819b232b..52f90613 100644 --- a/none/command.py +++ b/none/command.py @@ -431,7 +431,10 @@ async def handle_command(bot: NoneBot, ctx: Dict[str, Any]) -> bool: session = None if not session: cmd, current_arg = parse_command(bot, str(ctx['message']).lstrip()) - if not cmd or cmd.only_to_me and not ctx['to_me']: + if not cmd: + logger.debug('Not a known command, ignored') + return False + if cmd.only_to_me and not ctx['to_me']: logger.debug('Not to me, ignored') return False session = CommandSession(bot, ctx, cmd, current_arg=current_arg)