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}"