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

Using a much more reliable method of saving/restoring the initial

console.ctrlkey_passthru state.
As it was, if the irc.js abended, many ctrl-keys (e.g. ^C) would not work
after exiting. A lot of scripts that much with the console.ctrlkey_passthru
have this/similar issue and this is a simple but very reliable fix.
parent c08661e2
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@ var quit=0;
var nick=user.handle;
var nicks=new Array();
var loading=true;
var init_passthru=console.ctrlkey_passthru;
var real_names=true;
js.on_exit("console.ctrlkey_passthru = " + console.ctrlkey_passthru);
console.ctrlkey_passthru=~(134217728);
/* Command-line options go BEFORE command-line args */
......@@ -835,7 +835,6 @@ function get_nick(prefix) {
}
function clean_exit() {
console.ctrlkey_passthru=init_passthru;
exit();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment