[mw-devel] [Git][milliways/mw][master] Zero the flood limit counter before running js command handlers

Andrew Price welshbyte at sucs.org
Mon Jul 15 12:14:09 BST 2019



Andrew Price pushed to branch master at milliways / mw


Commits:
8021cbdd by Andrew Price at 2019-07-15T11:11:47Z
Zero the flood limit counter before running js command handlers

Fixes
  mwjs error: Script exceeded flood limit
  mwjs error: Error: error (rc -1)

- - - - -


1 changed file:

- src/client/script.c


Changes:

=====================================
src/client/script.c
=====================================
@@ -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) {



View it on GitLab: https://projects.sucs.org/milliways/mw/commit/8021cbdd8102ab40f681fbe7673e518d8b197d9f

-- 
View it on GitLab: https://projects.sucs.org/milliways/mw/commit/8021cbdd8102ab40f681fbe7673e518d8b197d9f
You're receiving this email because of your account on projects.sucs.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20190715/4a99554f/attachment.html>


More information about the mw-devel mailing list