From 7fca2afcceae5a3951bdb5fcb69dda7715e74042 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 17 Jun 2012 12:56:37 +0100 Subject: [PATCH] Brackets were in the wrong place on the output statements. :| --- modules/poll.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/poll.js b/modules/poll.js index 084b4e8..cebb735 100644 --- a/modules/poll.js +++ b/modules/poll.js @@ -42,11 +42,11 @@ var poll = function(dbot) { if(polls[name].owner === event.user) { if(!polls[name].votes.hasOwnProperty(name)) { polls[name]['votes'][option] = 0; - event.reply(dbot.t('option_added'), {'user': event.user, - 'name': name, 'option': option}); + event.reply(dbot.t('option_added', {'user': event.user, + 'name': name, 'option': option})); } else { - event.reply(dbot.t('option_exists'), {'option': option, - 'name': name, 'user': event.user}); + event.reply(dbot.t('option_exists', {'option': option, + 'name': name, 'user': event.user})); } } else { event.reply(dbot.t('not_poll_owner', {'user': event.user, @@ -65,10 +65,10 @@ var poll = function(dbot) { if(polls[name].owner === event.user) { if(polls[name].votes.hasOwnProperty(option)) { delete polls[name]['votes'][option]; - event.reply(dbot.t('option_removed'), {'user': event.user, - 'name': name, 'option': option}); + event.reply(dbot.t('option_removed', {'user': event.user, + 'name': name, 'option': option})); } else { - event.reply(dbot.t('invalid_vote'), {'vote': option}); + event.reply(dbot.t('invalid_vote', {'vote': option})); } } else { event.reply(dbot.t('not_poll_owner', {'name': name}));