3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-24 04:49:25 +01:00

Allow - in category names

This commit is contained in:
Luke Slater 2011-12-12 14:06:05 +00:00
parent d6eb37b226
commit 4872340784

View File

@ -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])) {