mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
lower case rmlast key
This commit is contained in:
parent
18906bf940
commit
5a2121b132
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user