3
0
mirror of https://github.com/reality/dbot.git synced 2025-02-26 02:10:39 +01:00

remove redundant hasownproperty check from puns since ~q already does that

This commit is contained in:
Luke Slater 2012-04-15 23:51:30 +01:00
parent 27f5ab6f30
commit 1b0a32078c

View File

@ -7,13 +7,11 @@ var puns = function(dbot) {
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')) {
if(dbot.db.quoteArrs.hasOwnProperty(data.user.toLowerCase())) {
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);
} }
} }
}
}, },
'on': 'JOIN', 'on': 'JOIN',