admin unlimited remove

This commit is contained in:
Luke Slater 2011-09-04 15:55:12 +01:00
parent 94bc9929ce
commit 33fc7712a8

View File

@ -17,7 +17,7 @@ var quotes = function(dbot) {
}, },
'~rmlast': function(data, params) { '~rmlast': function(data, params) {
if(rmAllowed == true) { if(rmAllowed == true || data.user == dbot.admin) {
var q = data.message.valMatch(/^~rmlast ([\d\w\s]*)/, 2); var q = data.message.valMatch(/^~rmlast ([\d\w\s]*)/, 2);
if(q) { if(q) {
if(quotes.hasOwnProperty(q[1])) { if(quotes.hasOwnProperty(q[1])) {