From 2d933a2468e193a2010ada54d133e3fb97d728ee Mon Sep 17 00:00:00 2001 From: Frank Kuo Date: Mon, 14 Nov 2022 11:23:18 +0800 Subject: [PATCH] fix pid checking --- bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/bot.py b/bot/bot.py index 70b20b9..86849e0 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -40,7 +40,7 @@ def check_answer(self, sid: int, name: str) -> bool: return (sid == self._sid and name == self._name) def check_capture(self, sid: int, pid: int, flag: str) -> bool: - if pid < 0: + if pid <= 0: return False try: return (sid == self._sid and flag == self._flags[pid-1])