From 0d67f12991775716b17fccd9b4ea101adf150dc8 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 30 May 2013 08:15:32 +0000 Subject: [PATCH] trim quote keys --- modules/quotes/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/quotes/commands.js b/modules/quotes/commands.js index 290ca42..751a4e6 100644 --- a/modules/quotes/commands.js +++ b/modules/quotes/commands.js @@ -174,8 +174,8 @@ var commands = function(dbot) { }, '~qadd': function(event) { - var key = event.input[1].toLowerCase(); - var text = event.input[2]; + var key = event.input[1].toLowerCase().trim(); + var text = event.input[2].trim(); if(!_.isArray(quotes[key])) { quotes[key] = []; }