From d79169500bc62441e016e014c3896b6c84efb235 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 8 Sep 2003 02:01:04 +0000
Subject: [PATCH] the /EVAL command now echoes back to the expression being
 evaluated.

---
 exec/ircd.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/exec/ircd.js b/exec/ircd.js
index 9f8f22b204..1ffaf88363 100644
--- a/exec/ircd.js
+++ b/exec/ircd.js
@@ -2270,8 +2270,10 @@ function IRCClient_registered_commands(command, cmdline) {
 				break;
 			}
 			cmd.shift();
+			var exp = cmd.join(' ');	/* expression */
+			this.server_notice("Evaluating: " + exp);
 			try {
-				this.server_notice("Result: " + eval(cmd.join(' ')));
+				this.server_notice("Result: " + eval(exp));
 			} catch(e) {
 				this.server_notice("!" + e);
 			}
-- 
GitLab