fixed command parsing...

This commit is contained in:
MaxRobinsonTheGreat 2024-12-06 00:00:45 -06:00
parent 5eb35e993a
commit c03d1001c7

View file

@ -106,6 +106,9 @@ export function parseCommandMessage(message) {
const param = params[i];
//Remove any extra characters
let arg = args[i].trim();
if ((arg.startsWith('"') && arg.endsWith('"')) || (arg.startsWith("'") && arg.endsWith("'"))) {
arg = arg.substring(1, arg.length-1);
}
//Convert to the correct type
switch(param.type) {