From 97b3a7e4eb019a19ebb7524a69ef7c7b7e94c563 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 8 Aug 2012 15:59:44 +0100 Subject: [PATCH] realityonce reinstated --- modules/quotes.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/quotes.js b/modules/quotes.js index 3d1e9d1..f2558d4 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -229,7 +229,6 @@ var quotes = function(dbot) { }); }, - /* For automatic quote retrieval 'listener': function(data, params) { if((dbot.db.ignores.hasOwnProperty(data.user) && dbot.db.ignores[data.user].include(name)) == false) { @@ -243,7 +242,7 @@ var quotes = function(dbot) { if((dbot.db.bans.hasOwnProperty('~qadd') && dbot.db.bans['~qadd'].include(data.user)) || dbot.db.bans['*'].include(data.user)) { - dbot.say(data.channel, dbot.t('command_ban', {'user': data.user})); + event.reply(dbot.t('command_ban', {'user': data.user})); } else { if(!dbot.db.quoteArrs.hasOwnProperty('realityonce')) { dbot.db.quoteArrs['realityonce'] = []; @@ -251,13 +250,13 @@ var quotes = function(dbot) { dbot.db.quoteArrs['realityonce'].push('reality ' + once[1] + '.'); addStack.push('realityonce'); rmAllowed = true; - dbot.instance.say(data.channel, '\'reality ' + once[1] + '.\' saved.'); + event.reply('\'reality ' + once[1] + '.\' saved.'); } } } }, - 'on': 'PRIVMSG',*/ + 'on': 'PRIVMSG' }; };