From 034525e601541aa7768575be125602f0f84b83a6 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Mon, 4 Jun 2012 03:03:51 +0100 Subject: [PATCH] readd rmlast limit --- modules/quotes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/quotes.js b/modules/quotes.js index eb02105..64829ed 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -93,7 +93,7 @@ var quotes = function(dbot) { }, '~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(); if(quotes.hasOwnProperty(key)) { if(!dbot.db.locks.include(key) || dbot.admin.include(event.user)) { @@ -109,9 +109,9 @@ var quotes = function(dbot) { } else { event.reply(dbot.t('no_quotes', {'category': q[1]})); } - /*} else { + } else { event.reply(dbot.t('rmlast_spam')); - }*/ + } }, /*'~rm': function(data, params) {