mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
whoops
This commit is contained in:
parent
97b3a7e4eb
commit
c3dbef3174
@ -229,20 +229,20 @@ var quotes = function(dbot) {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
'listener': function(data, params) {
|
'listener': function(event) {
|
||||||
if((dbot.db.ignores.hasOwnProperty(data.user) &&
|
if((dbot.db.ignores.hasOwnProperty(event) &&
|
||||||
dbot.db.ignores[data.user].include(name)) == false) {
|
dbot.db.ignores[event.user].include(name)) == false) {
|
||||||
if(data.user == 'reality') {
|
if(event.user == 'reality') {
|
||||||
var once = data.message.valMatch(/^I ([\d\w\s,'-]* once)/, 2);
|
var once = event.message.valMatch(/^I ([\d\w\s,'-]* once)/, 2);
|
||||||
} else {
|
} else {
|
||||||
var once = data.message.valMatch(/^reality ([\d\w\s,'-]* once)/, 2);
|
var once = event.message.valMatch(/^reality ([\d\w\s,'-]* once)/, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(once) {
|
if(once) {
|
||||||
if((dbot.db.bans.hasOwnProperty('~qadd') &&
|
if((dbot.db.bans.hasOwnProperty('~qadd') &&
|
||||||
dbot.db.bans['~qadd'].include(data.user)) ||
|
dbot.db.bans['~qadd'].include(event.user)) ||
|
||||||
dbot.db.bans['*'].include(data.user)) {
|
dbot.db.bans['*'].include(event.user)) {
|
||||||
event.reply(dbot.t('command_ban', {'user': data.user}));
|
event.reply(dbot.t('command_ban', {'user': event.user}));
|
||||||
} else {
|
} else {
|
||||||
if(!dbot.db.quoteArrs.hasOwnProperty('realityonce')) {
|
if(!dbot.db.quoteArrs.hasOwnProperty('realityonce')) {
|
||||||
dbot.db.quoteArrs['realityonce'] = [];
|
dbot.db.quoteArrs['realityonce'] = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user