diff --git a/modules/quotes.js b/modules/quotes.js index 640d078..eab5454 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -100,7 +100,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])) {