fix count of 'total'

This commit is contained in:
Gordon Shumway 2019-02-23 15:36:20 -05:00 committed by GitHub
parent 8a4d3e84b4
commit 54552a3502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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")