From 54552a3502aaf055255de53972bd5eb9c2cd4585 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Sat, 23 Feb 2019 15:36:20 -0500 Subject: [PATCH] fix count of 'total' --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 7db05a5..364e1bb 100644 --- a/plugin.py +++ b/plugin.py @@ -757,8 +757,8 @@ class DuckHunt(callbacks.Plugin): if (self.channelscores.get(channel)): scores = self.channelscores[channel] total = 0 - for player in scores.items(): - total += scores[player] + for player, value in scores.items(): + total += value irc.reply(str(total) + " ducks have been shot in " + channel + "!") else: irc.reply("There are no scores for this channel yet")