diff --git a/exec/ircd.js b/exec/ircd.js
index b84cc86be1fa834966c66abc08a44cd224eb3985..92fc2b43c6b7437c6728bb00402237f41af79114 100644
--- a/exec/ircd.js
+++ b/exec/ircd.js
@@ -689,10 +689,9 @@ if(this.resolve_host==undefined) {	// v3.10?
 	sync_310 = true;
 }
 
-if (!jsexec_revision_detail)
-	jsexec_revision_detail = "JSexec";
-
 if(this.server==undefined) {		// Running from JSexec?
+	if (!jsexec_revision_detail)
+		jsexec_revision_detail = "JSexec";
 	if (cmdline_port)
 		default_port = cmdline_port;
 	else if (mline_port)