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