From eb9b9018bf0a10519d729d8114bb25c86c823f3e Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Mon, 16 Apr 2012 15:23:19 +0100 Subject: [PATCH] add check in puns again derp --- modules/puns.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/puns.js b/modules/puns.js index 0696866..a7cc3aa 100644 --- a/modules/puns.js +++ b/modules/puns.js @@ -6,7 +6,8 @@ var puns = function(dbot) { 'listener': function(data) { if((dbot.db.ignores.hasOwnProperty(data.user) && dbot.db.ignores[data.user].include(name)) == false) { - if(dbot.moduleNames.include('quotes')) { + if(dbot.moduleNames.include('quotes') && + dbot.db.quotes.hasOwnProperty(data.user)) { data.message = '~q ' + data.user.toLowerCase(); var params = data.message.split(' '); dbot.commands[params[0]](data, params);