From 33fc7712a8348d9b95d167bc17eeb36a075900e2 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 4 Sep 2011 15:55:12 +0100 Subject: [PATCH] admin unlimited remove --- modules/quotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes.js b/modules/quotes.js index 7e98d02..d34ef5f 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -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])) {