summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console_cmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/console_cmds.c b/console_cmds.c
index a62196242..395afc330 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -286,8 +286,9 @@ DEF_CONSOLE_CMD(ConExec)
fgets(cmd, sizeof(cmd), _script_file);
while (!feof(_script_file) && _script_running) {
- strtok(cmd, "\r\n");
- IConsoleCmdExec(cmd);
+ strtok(cmd, "\r\n#");
+ if (strlen(cmd) > 0 && cmd[0] != '#')
+ IConsoleCmdExec(cmd);
fgets(cmd, sizeof(cmd), _script_file);
}