3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

possibly ignore whitespace in qadd..?

This commit is contained in:
Luke Slater 2012-03-17 13:22:25 +00:00
parent cb0bacfabd
commit 63039f4e2c

View File

@ -179,7 +179,7 @@ var quotes = function(dbot) {
},
'~qadd': function(data, params) {
var q = data.message.valMatch(/^~qadd ([\d\w\s-]*)[ ]?=[ ]?(.+)$/, 3);
var q = data.message.valMatch(/^~qadd ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3);
if(q) {
key = q[1].toLowerCase();
if(!Object.isArray(quotes[key])) {