From b7fa339ffac6cee0bfa707e35937cdb6ca38068a Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 14 Aug 2016 18:48:17 -0500 Subject: [PATCH] Corrected issue where if the method existed was being checked, instead of calling it --- cogs/hangman.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cogs/hangman.py b/cogs/hangman.py index 30eed3a..23e0551 100644 --- a/cogs/hangman.py +++ b/cogs/hangman.py @@ -86,13 +86,13 @@ class Hangman: fmt = "That's correct!" else: fmt = "Sorry that's not the correct phrase..." - fmt += str(game) - if game.win: + + if game.win(): fmt += " You guys got it! The word was `{}`".format(game.word) - #del self.games[ctx.message.server.id] + del self.games[ctx.message.server.id] elif game.failed: fmt += " Sorry, you guys failed...the word was `{}`".format(game.word) - #del self.games[ctx.message.server.id] + del self.games[ctx.message.server.id] else: fmt += str(game)