3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

output changes

This commit is contained in:
Luke Slater 2012-06-15 17:46:14 +01:00
parent 5904708d6b
commit 8ce80a1d94
2 changed files with 4 additions and 4 deletions

View File

@ -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}));

View File

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