3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 20:22:39 +01:00

possibly ignore whitespace in qadd..?

This commit is contained in:
Luke Slater 2012-03-17 13:17:58 +00:00
parent 653264e46a
commit de873c0302
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ var adminCommands = function(dbot) {
child = exec("git pull", function (error, stdout, stderr) { child = exec("git pull", function (error, stdout, stderr) {
console.log(stderr); console.log(stderr);
dbot.say(data.channel, 'Git pulled that shit.');
commands.reload(data, params); commands.reload(data, params);
}.bind(this)); }.bind(this));
}, },

View File

@ -179,7 +179,7 @@ var quotes = function(dbot) {
}, },
'~qadd': function(data, params) { '~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) { if(q) {
key = q[1].toLowerCase(); key = q[1].toLowerCase();
if(!Object.isArray(quotes[key])) { if(!Object.isArray(quotes[key])) {