Copying a NetscriptJS script with scp now properly clears its 'module'.

This commit is contained in:
danielyxie
2018-06-29 00:39:05 -05:00
parent e621cac0a8
commit c8421168b6
5 changed files with 60 additions and 41 deletions
+2 -1
View File
@@ -304,7 +304,7 @@ $(document).keyup(function(e) {
})
//Implements a tab completion feature for terminal
// command - Command (first arg only)
// command - Terminal command except for the last incomplete argument
// arg - Incomplete argument string that the function will try to complete, or will display
// a series of possible options for
// allPossibilities - Array of strings containing all possibilities that the
@@ -1466,6 +1466,7 @@ let Terminal = {
var oldScript = destServer.scripts[i];
oldScript.code = sourceScript.code;
oldScript.ramUsage = sourceScript.ramUsage;
oldScript.module = "";
post(scriptname + " overwriten on " + destServer.hostname);
return;
}