3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00

add check in puns again derp

This commit is contained in:
Luke Slater 2012-04-16 15:23:19 +01:00
parent 39d3021870
commit eb9b9018bf

View File

@ -6,7 +6,8 @@ var puns = function(dbot) {
'listener': function(data) { 'listener': function(data) {
if((dbot.db.ignores.hasOwnProperty(data.user) && if((dbot.db.ignores.hasOwnProperty(data.user) &&
dbot.db.ignores[data.user].include(name)) == false) { 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(); data.message = '~q ' + data.user.toLowerCase();
var params = data.message.split(' '); var params = data.message.split(' ');
dbot.commands[params[0]](data, params); dbot.commands[params[0]](data, params);