Whoops, switch qset to valmatch

This commit is contained in:
Luke Slater 2011-08-26 12:45:04 +01:00
parent 3989cf277b
commit 34e9f9b036

View File

@ -24,7 +24,7 @@ var userCommands = function(dbot) {
}, },
'~qset': function(data, params) { '~qset': function(data, params) {
var q = data.message.match(/^~qset ([\d\w\s]*)=(.+)$/, 3); var q = data.message.valMatch(/^~qset ([\d\w\s]*)=(.+)$/, 3);
if(q) { if(q) {
dbot.say(data.channel, dbot.quotes.set(q)); dbot.say(data.channel, dbot.quotes.set(q));
} else { } else {