mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
remove redundant hasownproperty check from puns since ~q already does that
This commit is contained in:
parent
27f5ab6f30
commit
1b0a32078c
@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user