Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
fix pid checking
Browse files Browse the repository at this point in the history
  • Loading branch information
GWFrank committed Nov 14, 2022
1 parent 18405af commit 2d933a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 2d933a2

Please sign in to comment.