Commit 7ac3dae8 authored by Justin Mitchell's avatar Justin Mitchell
Browse files

Would help if idle was run before the javascript was loaded,

as thats where the autoexec stuff gets run. actually fixes #9
parent a9c50f14
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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 */