3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 11:42:36 +01:00

lower case rmlast key

This commit is contained in:
Luke Slater 2011-10-18 16:22:25 +01:00
parent 18906bf940
commit 5a2121b132

View File

@ -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();