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

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
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {