From 5a2121b132b012d876cfb86f99ada08bf39d5b93 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 18 Oct 2011 16:22:25 +0100 Subject: [PATCH] lower case rmlast key --- modules/quotes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/quotes.js b/modules/quotes.js index 70ea9d3..8d0061d 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -44,6 +44,7 @@ var quotes = function(dbot) { if(rmAllowed == true || data.user == dbot.admin) { var q = data.message.valMatch(/^~rmlast ([\d\w\s]*)/, 2); if(q) { + q[1] = q[1].trim().toLowerCase(); if(quotes.hasOwnProperty(q[1])) { if(!dbot.db.locks.include(q[1])) { var quote = quotes[q[1]].pop();