mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
possibly ignore whitespace in qadd..?
This commit is contained in:
parent
653264e46a
commit
de873c0302
@ -25,6 +25,7 @@ var adminCommands = function(dbot) {
|
||||
|
||||
child = exec("git pull", function (error, stdout, stderr) {
|
||||
console.log(stderr);
|
||||
dbot.say(data.channel, 'Git pulled that shit.');
|
||||
commands.reload(data, params);
|
||||
}.bind(this));
|
||||
},
|
||||
|
@ -179,7 +179,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-]*)\t?=\t?(.+)$/, 3);
|
||||
if(q) {
|
||||
key = q[1].toLowerCase();
|
||||
if(!Object.isArray(quotes[key])) {
|
||||
|
Loading…
Reference in New Issue
Block a user