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] = []; }