3
0
mirror of https://github.com/reality/dbot.git synced 2025-02-17 14:01:04 +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,11 +7,9 @@ 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);
}
} }
} }
}, },