mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
no rmlast limit
This commit is contained in:
parent
e5a9142384
commit
3f38356717
@ -93,7 +93,7 @@ var quotes = function(dbot) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'~rmlast': function(event) {
|
'~rmlast': function(event) {
|
||||||
if(rmAllowed == true || dbot.admin.include(event.user)) {
|
//if(rmAllowed == true || dbot.admin.include(event.user)) {
|
||||||
var key = event.input[1].trim().toLowerCase();
|
var key = event.input[1].trim().toLowerCase();
|
||||||
if(quotes.hasOwnProperty(key)) {
|
if(quotes.hasOwnProperty(key)) {
|
||||||
if(!dbot.db.locks.include(key) || dbot.admin.include(event.user)) {
|
if(!dbot.db.locks.include(key) || dbot.admin.include(event.user)) {
|
||||||
@ -109,9 +109,9 @@ var quotes = function(dbot) {
|
|||||||
} else {
|
} else {
|
||||||
event.reply(dbot.t('no_quotes', {'category': q[1]}));
|
event.reply(dbot.t('no_quotes', {'category': q[1]}));
|
||||||
}
|
}
|
||||||
} else {
|
/*} else {
|
||||||
event.reply(dbot.t('rmlast_spam'));
|
event.reply(dbot.t('rmlast_spam'));
|
||||||
}
|
}*/
|
||||||
},
|
},
|
||||||
|
|
||||||
/*'~rm': function(data, params) {
|
/*'~rm': function(data, params) {
|
||||||
|
Loading…
Reference in New Issue
Block a user