Commit 8021cbdd authored by Andrew Price's avatar Andrew Price

Zero the flood limit counter before running js command handlers

Fixes
  mwjs error: Script exceeded flood limit
  mwjs error: Error: error (rc -1)
parent 809488b2
Pipeline #584 passed with stage
in 8 minutes and 13 seconds
......@@ -207,6 +207,7 @@ void DoScript(char *line)
if ((num=ParseLine(line, bits))<1) return;
js_flood = 0;
if (js_handle_command(bits[0], num - 1, &bits[1]) == 0)
return;
if ((function_name = FindLinks(bind_list, bits[0])) == NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment