mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
realityonce reinstated
This commit is contained in:
parent
da8f9ea20f
commit
97b3a7e4eb
@ -229,7 +229,6 @@ var quotes = function(dbot) {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/* For automatic quote retrieval
|
|
||||||
'listener': function(data, params) {
|
'listener': function(data, params) {
|
||||||
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) {
|
||||||
@ -243,7 +242,7 @@ var quotes = function(dbot) {
|
|||||||
if((dbot.db.bans.hasOwnProperty('~qadd') &&
|
if((dbot.db.bans.hasOwnProperty('~qadd') &&
|
||||||
dbot.db.bans['~qadd'].include(data.user)) ||
|
dbot.db.bans['~qadd'].include(data.user)) ||
|
||||||
dbot.db.bans['*'].include(data.user)) {
|
dbot.db.bans['*'].include(data.user)) {
|
||||||
dbot.say(data.channel, dbot.t('command_ban', {'user': data.user}));
|
event.reply(dbot.t('command_ban', {'user': data.user}));
|
||||||
} else {
|
} else {
|
||||||
if(!dbot.db.quoteArrs.hasOwnProperty('realityonce')) {
|
if(!dbot.db.quoteArrs.hasOwnProperty('realityonce')) {
|
||||||
dbot.db.quoteArrs['realityonce'] = [];
|
dbot.db.quoteArrs['realityonce'] = [];
|
||||||
@ -251,13 +250,13 @@ var quotes = function(dbot) {
|
|||||||
dbot.db.quoteArrs['realityonce'].push('reality ' + once[1] + '.');
|
dbot.db.quoteArrs['realityonce'].push('reality ' + once[1] + '.');
|
||||||
addStack.push('realityonce');
|
addStack.push('realityonce');
|
||||||
rmAllowed = true;
|
rmAllowed = true;
|
||||||
dbot.instance.say(data.channel, '\'reality ' + once[1] + '.\' saved.');
|
event.reply('\'reality ' + once[1] + '.\' saved.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
'on': 'PRIVMSG',*/
|
'on': 'PRIVMSG'
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user