forked from GitHub/dbot
dupe protection in realityonce
This commit is contained in:
parent
c3dbef3174
commit
40d239802d
@ -247,6 +247,9 @@ var quotes = function(dbot) {
|
|||||||
if(!dbot.db.quoteArrs.hasOwnProperty('realityonce')) {
|
if(!dbot.db.quoteArrs.hasOwnProperty('realityonce')) {
|
||||||
dbot.db.quoteArrs['realityonce'] = [];
|
dbot.db.quoteArrs['realityonce'] = [];
|
||||||
}
|
}
|
||||||
|
if(dbot.db.quoteArrs['realityonce'].include('reality ' + once[1] + '.')) {
|
||||||
|
event.reply(event.user + ': reality has already done that once.');
|
||||||
|
} else {
|
||||||
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;
|
||||||
@ -254,6 +257,7 @@ var quotes = function(dbot) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
'on': 'PRIVMSG'
|
'on': 'PRIVMSG'
|
||||||
|
Loading…
Reference in New Issue
Block a user