mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
admin unlimited remove
This commit is contained in:
parent
94bc9929ce
commit
33fc7712a8
@ -17,7 +17,7 @@ var quotes = function(dbot) {
|
||||
},
|
||||
|
||||
'~rmlast': function(data, params) {
|
||||
if(rmAllowed == true) {
|
||||
if(rmAllowed == true || data.user == dbot.admin) {
|
||||
var q = data.message.valMatch(/^~rmlast ([\d\w\s]*)/, 2);
|
||||
if(q) {
|
||||
if(quotes.hasOwnProperty(q[1])) {
|
||||
|
Loading…
Reference in New Issue
Block a user