Skip to content
Snippets Groups Projects
Commit 0f2c8b87 authored by rswindell's avatar rswindell
Browse files

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.
parent 1f2eef11
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment