From 418af0e6e48735229a052c0ed1e3f057c7e28c69 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 19 Sep 2003 09:02:37 +0000
Subject: [PATCH] Log termination reason. Fix /DIE back the way it was before
 last commit.

---
 exec/ircd.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/exec/ircd.js b/exec/ircd.js
index 63130aa1ca..bdf5f73a03 100644
--- a/exec/ircd.js
+++ b/exec/ircd.js
@@ -196,6 +196,7 @@ function int_to_ip(ip) {
 }
 
 function terminate_everything(terminate_reason) {
+	log("Terminating: " + terminate_reason);
 	for(thisClient in Clients) {
 		var Client = Clients[thisClient];
 		if (Client && Client.local)
@@ -3231,9 +3232,7 @@ function IRCClient_registered_commands(command, cmdline) {
 				break;
 			}
 			log("!ERROR! Shutting down the ircd as per " + this.ircnuh);
-			if(this.js!=undefined)
-				js.terminated = true;
-			server.terminated = true;
+			js.terminated = true;
 			break;
 		case "REHASH":
 			if (!((this.mode&USERMODE_OPER) &&
-- 
GitLab