add nop command in shell

This commit is contained in:
Martin Michelsen
2024-02-10 20:35:34 -08:00
parent cb34b350b0
commit cfbbdc7216
+4 -1
View File
@@ -99,7 +99,10 @@ void ServerShell::execute_command(const string& command) {
command_args = command_args.substr(args_begin);
}
if (command_name == "exit") {
if (command_name == "" || starts_with(command_name, "//")) {
// Do nothing
} else if (command_name == "exit") {
throw exit_shell();
} else if (command_name == "help") {