From 37cbb822e38a0e3ed2fea9ca6fd10d02713cfafb Mon Sep 17 00:00:00 2001 From: James Scott Date: Sun, 16 Dec 2012 22:34:55 -0500 Subject: [PATCH] fixed variable name conflict --- plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 105e1a2..a49d996 100644 --- a/plugin.py +++ b/plugin.py @@ -184,13 +184,14 @@ class Cah(callbacks.Plugin): #playerScores = sorted(cah.score.iteritems(), key=operator.itemgetter(1), reverse=True) #scores = [] winner = None + formattedScores = {} for name, score in scores.iteritems(): if winner == None: winner = (name, score) elif winner[1] < score: winner = (name, score) - scores.append("%s: %d" % (name, score)) - self.msg(channel, "Game Over! %s is the Winner! Scores: %s " % (winner[0], ", ".join(scores))) + formattedScores.append("%s: %d" % (name, score)) + self.msg(channel, "Game Over! %s is the Winner! Scores: %s " % (winner[0], ", ".join(formattedScores))) def endround(self): channel = self.channel