From 5843801d13d1c4c5b758285ff25ba564fd2c0616 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Sat, 9 Dec 2017 17:41:02 -0800 Subject: [PATCH] TicTacToe: Simplify superfluous initial command logic. --- zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py b/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py index e8ad8b7..400d2f4 100644 --- a/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py +++ b/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py @@ -276,11 +276,9 @@ class ticTacToeHandler(object): ''' def handle_message(self, message, bot_handler): - command_list = message['content'] - command = "" - for val in command_list: - command += val + command = message['content'] original_sender = message['sender_email'] + storage = bot_handler.storage if not storage.contains(original_sender): storage.put(original_sender, None)