[mw-devel] [Git][arthur/mw][master] Would help if idle was run before the javascript was loaded,

Justin Mitchell arthur at sucs.org
Wed Jan 13 12:44:08 GMT 2016


Justin Mitchell pushed to branch master at Justin Mitchell / mw


Commits:
7ac3dae8 by Justin Mitchell at 2016-01-13T12:41:33Z
Would help if idle was run before the javascript was loaded,
as thats where the autoexec stuff gets run. actually fixes #9

- - - - -


1 changed file:

- src/client/main.c


Changes:

=====================================
src/client/main.c
=====================================
--- a/src/client/main.c
+++ b/src/client/main.c
@@ -644,6 +644,10 @@ int main(int argc, char **argv)
 	if (!autochat) printf(_("Type 'help' for help.\n"));
 	user->loggedin = time(0);
 
+	/* give the incoming pipe a chance to process before
+	 * we run the autoexec functions, so wholist etc can arrive */	
+	idle( -1, 1);
+
 	/* initialise script variables */
 	script_init();
 	setup_js();
@@ -696,10 +700,6 @@ int main(int argc, char **argv)
 	RoomInit(&user->room);
 	update_user(user);
 
-	/* give the incoming pipe a chance to process before
-	 * we run the autoexec functions, so wholist etc can arrive */	
-	idle( -1, 1);
-
 	/* run all board init functions */
 	RunInitFuncs(0);
 	/* broadcast board logon signal to other users */



View it on GitLab: https://projects.sucs.org/arthur/mw/commit/7ac3dae8aba797bb2c9bb02bf220f13e5a9c29f3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20160113/6cf7f935/attachment.html>


More information about the mw-devel mailing list