Quellcode durchsuchen

[Minor] Try to fix another stupid cases of dot commands

Have anybody used them ever?
tags/3.3
Vsevolod Stakhov vor 2 Jahren
Ursprung
Commit
57e26bc822
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 11 neuen und 2 gelöschten Zeilen
  1. 11
    2
      src/rspamadm/lua_repl.c

+ 11
- 2
src/rspamadm/lua_repl.c Datei anzeigen

@@ -630,10 +630,19 @@ rspamadm_lua_run_repl (lua_State *L, bool is_batch)

if (linelen > 0) {
if (input[linelen - 1] == '\n') {
linelen--;
input[linelen - 1] = '\0';
linelen --;
}

rspamadm_exec_input(L, input);
if (linelen > 0) {
if (input[0] == '.') {
if (rspamadm_lua_try_dot_command(L, input)) {
continue;
}
}

rspamadm_exec_input(L, input);
}
}
else {
break;

Laden…
Abbrechen
Speichern