mirror of
https://github.com/reality/dbot.git
synced 2025-01-11 20:42:37 +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) {
|
if(rmAllowed == true || data.user == dbot.admin) {
|
||||||
var q = data.message.valMatch(/^~rmlast ([\d\w\s]*)/, 2);
|
var q = data.message.valMatch(/^~rmlast ([\d\w\s]*)/, 2);
|
||||||
if(q) {
|
if(q) {
|
||||||
|
q[1] = q[1].trim().toLowerCase();
|
||||||
if(quotes.hasOwnProperty(q[1])) {
|
if(quotes.hasOwnProperty(q[1])) {
|
||||||
if(!dbot.db.locks.include(q[1])) {
|
if(!dbot.db.locks.include(q[1])) {
|
||||||
var quote = quotes[q[1]].pop();
|
var quote = quotes[q[1]].pop();
|
||||||
|
Loading…
Reference in New Issue
Block a user