From 8ce80a1d94ae08c9f0c1f4140d4d9d513008dbfa Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Fri, 15 Jun 2012 17:46:14 +0100 Subject: [PATCH] output changes --- modules/poll.js | 4 ++-- strings.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/poll.js b/modules/poll.js index 86766e5..36f72b7 100644 --- a/modules/poll.js +++ b/modules/poll.js @@ -44,12 +44,12 @@ var poll = function(dbot) { polls[name].votes[vote]++; polls[name].votees[event.user] = vote; event.reply(dbot.t('changed_vote', {'vote': vote, 'poll': name, - 'count': polls[name].votes[vote]})); + 'count': polls[name].votes[vote], 'user': event.user})); } else { polls[name].votes[vote]++; polls[name].votees[event.user] = vote; event.reply(dbot.t('voted', {'vote': vote, 'poll': name, - 'count': polls[name].votes[vote]})); + 'count': polls[name].votes[vote], 'user': event.user})); } } else { event.reply(dbot.t('invalid_vote', {'vote': vote})); diff --git a/strings.json b/strings.json index b37672a..ed43d97 100644 --- a/strings.json +++ b/strings.json @@ -206,10 +206,10 @@ "english": "Poll '{name}' created ({description}). Cast thy votations!" }, "changed_vote": { - "english": "Changed vote in {poll} to '{vote}' ({count})" + "english": "{user} changed their vote in {poll} to '{vote}' ({count})" }, "voted": { - "english": "Voted for '{vote}' in {poll} ({count})" + "english": "{user} voted for '{vote}' in {poll} ({count})" }, "invalid_vote": { "english": "Invalid vote: {vote}"