From 0f2c8b87010e9152de2bb71bf634196070ed94d6 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 8 Sep 2003 00:25:43 +0000 Subject: [PATCH] Bugfix in terminate_everything (client is a global variable, must use var to create local variable by the same name). Bugfix in /EVAL handler, multiple word expressions weren't joined correctly. --- exec/ircd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/ircd.js b/exec/ircd.js index 1ec82ec7f7..9f8f22b204 100644 --- a/exec/ircd.js +++ b/exec/ircd.js @@ -144,7 +144,7 @@ function dec_to_ip(ip) { function terminate_everything(terminate_reason) { for(thisClient in Clients) { - client = Clients[thisClient]; + var client = Clients[thisClient]; if (client.local) client.quit(terminate_reason,false) } @@ -2271,7 +2271,7 @@ function IRCClient_registered_commands(command, cmdline) { } cmd.shift(); try { - this.server_notice("Result: " + eval(cmd.toString())); + this.server_notice("Result: " + eval(cmd.join(' '))); } catch(e) { this.server_notice("!" + e); } -- GitLab