mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-26 09:03:43 +02:00
fix "none" command syntax
This commit is contained in:
parent
e3aed60f6d
commit
b33953ab01
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue