3
0
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:
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) {
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])) {