[mw-devel] MW3 r923 - branches/jscript/src

arthur at sucs.org arthur at sucs.org
Wed Mar 21 08:49:09 GMT 2007


Author: arthur
Date: 2007-03-21 08:49:07 +0000 (Wed, 21 Mar 2007)
New Revision: 923

Modified:
   branches/jscript/src/init.c
Log:
no need for seperate 'jscript' directive, removed. refs #11


Modified: branches/jscript/src/init.c
===================================================================
--- branches/jscript/src/init.c	2007-03-21 08:46:41 UTC (rev 922)
+++ branches/jscript/src/init.c	2007-03-21 08:49:07 UTC (rev 923)
@@ -124,19 +124,6 @@
 
 		if (*a=='#') { free(backup); free(header); continue; }
 
-		/* load a javascript file */
-		if (!strcasecmp(a,"jscript")) {
-			char lpath[1024];
-			if ((b=strtok(NULL," \t\n\r"))==NULL) 
-			{
-				printf(_("Malformed jscript in %s at line %d\n"),filename,lineno);
-				free(backup);
-				free(header);
-				continue;
-			}
-			snprintf(lpath, sizeof(lpath), "%s/%s", base, b);
-			load_js(lpath);
-		}else
 		/* load command aliases */
 		if (!strcasecmp(a,"alias"))
 		{





More information about the mw-devel mailing list