possibly ignore whitespace in qadd..?

This commit is contained in:
Luke Slater 2012-03-17 13:20:21 +00:00
parent de873c0302
commit cb0bacfabd

View File

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