From 87b57f879c12608a239d8f99578ce7b3e8099db5 Mon Sep 17 00:00:00 2001 From: fishfred <10870360+fishfred@users.noreply.github.com> Date: Fri, 27 Mar 2020 15:10:46 +0000 Subject: [PATCH] bots: Fixed incorrect computer play message --- zulip_bots/zulip_bots/game_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/game_handler.py b/zulip_bots/zulip_bots/game_handler.py index 6d78a9d..2c9b9de 100644 --- a/zulip_bots/zulip_bots/game_handler.py +++ b/zulip_bots/zulip_bots/game_handler.py @@ -650,7 +650,7 @@ To move subjects, send your message again, otherwise join the game using the lin failed = False for u in users: user = u.strip().lstrip('@**').rstrip('**') - if user == self.get_bot_username() or user == self.email: + if (user == self.get_bot_username() or user == self.email) and not self.supports_computer: self.send_reply( message, 'You cannot play against the computer in this game.') if '@' not in user: