From de873c03029873f5fe6dd55ed0eada6d2c8e9bae Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 17 Mar 2012 13:17:58 +0000 Subject: [PATCH] possibly ignore whitespace in qadd..? --- modules/admin.js | 1 + modules/quotes.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/admin.js b/modules/admin.js index 7ddc950..678e707 100644 --- a/modules/admin.js +++ b/modules/admin.js @@ -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)); }, diff --git a/modules/quotes.js b/modules/quotes.js index f4b1641..141e73f 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -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])) {