mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 20:22:39 +01:00
add check in puns again derp
This commit is contained in:
parent
39d3021870
commit
eb9b9018bf
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user