fix "none" command syntax

This commit is contained in:
MaxRobinsonTheGreat 2025-08-25 15:45:54 -05:00
parent e3aed60f6d
commit b33953ab01

View file

@ -318,9 +318,8 @@ export class Agent {
else {
// no command at all
let pre_message = res.substring(0, res.indexOf(command_name)).trim();
res = pre_message;
if (res.trim().length > 0)
this.routeResponse(source, res);
if (pre_message.trim().length > 0)
this.routeResponse(source, pre_message);
}
let execute_res = await executeCommand(this, res);