forked from GitHub/dbot
Whoops, switch qset to valmatch
This commit is contained in:
parent
3989cf277b
commit
34e9f9b036
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user