From c3dbef317494caf1ecac7f70fde9c0d03d9f899b Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 8 Aug 2012 16:01:44 +0100 Subject: [PATCH] whoops --- modules/quotes.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/quotes.js b/modules/quotes.js index f2558d4..fb7a82c 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -229,20 +229,20 @@ var quotes = function(dbot) { }); }, - 'listener': function(data, params) { - if((dbot.db.ignores.hasOwnProperty(data.user) && - dbot.db.ignores[data.user].include(name)) == false) { - if(data.user == 'reality') { - var once = data.message.valMatch(/^I ([\d\w\s,'-]* once)/, 2); + 'listener': function(event) { + if((dbot.db.ignores.hasOwnProperty(event) && + dbot.db.ignores[event.user].include(name)) == false) { + if(event.user == 'reality') { + var once = event.message.valMatch(/^I ([\d\w\s,'-]* once)/, 2); } else { - var once = data.message.valMatch(/^reality ([\d\w\s,'-]* once)/, 2); + var once = event.message.valMatch(/^reality ([\d\w\s,'-]* once)/, 2); } if(once) { if((dbot.db.bans.hasOwnProperty('~qadd') && - dbot.db.bans['~qadd'].include(data.user)) || - dbot.db.bans['*'].include(data.user)) { - event.reply(dbot.t('command_ban', {'user': data.user})); + dbot.db.bans['~qadd'].include(event.user)) || + dbot.db.bans['*'].include(event.user)) { + event.reply(dbot.t('command_ban', {'user': event.user})); } else { if(!dbot.db.quoteArrs.hasOwnProperty('realityonce')) { dbot.db.quoteArrs['realityonce'] = [];