trim quote keys

This commit is contained in:
reality 2013-05-30 08:15:32 +00:00
parent 90d77e4c67
commit 0d67f12991

View File

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