Skip to content

Commit 87b57f8

Browse files
fremillershowell
authored andcommitted
bots: Fixed incorrect computer play message
1 parent 0a0f9e9 commit 87b57f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zulip_bots/zulip_bots/game_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def verify_users(self, users: List[str], message: Dict[str, Any]={}) -> List[str
650650
failed = False
651651
for u in users:
652652
user = u.strip().lstrip('@**').rstrip('**')
653-
if user == self.get_bot_username() or user == self.email:
653+
if (user == self.get_bot_username() or user == self.email) and not self.supports_computer:
654654
self.send_reply(
655655
message, 'You cannot play against the computer in this game.')
656656
if '@' not in user:

0 commit comments

Comments
 (0)