mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
trim quote keys
This commit is contained in:
parent
90d77e4c67
commit
0d67f12991
@ -174,8 +174,8 @@ var commands = function(dbot) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'~qadd': function(event) {
|
'~qadd': function(event) {
|
||||||
var key = event.input[1].toLowerCase();
|
var key = event.input[1].toLowerCase().trim();
|
||||||
var text = event.input[2];
|
var text = event.input[2].trim();
|
||||||
if(!_.isArray(quotes[key])) {
|
if(!_.isArray(quotes[key])) {
|
||||||
quotes[key] = [];
|
quotes[key] = [];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user