From 158debccb77adbd2aa7522a50492142f81e3e48d Mon Sep 17 00:00:00 2001 From: Ben Schomp Date: Fri, 18 May 2012 13:37:51 -0400 Subject: [PATCH] stop giving a single player with 0 points credit for a 'win' --- plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index 9a6d5c0..9a896fd 100644 --- a/plugin.py +++ b/plugin.py @@ -686,13 +686,12 @@ class Worddle(BaseGame): player_results[1].get_score() == high_score for result in player_results: score = result.get_score() + verb = "got" if score == high_score: if tie: verb = "%stied%s with" % (LYELLOW, LGRAY) - else: + elif high_score > 0: verb = "%swins%s with" % (LGREEN, LGRAY) - else: - verb = "got" words_text = result.render_words(longest_len=self.longest_len) self._broadcast('result', [self.channel], nick=result.player, verb=verb, points=score, words=words_text)