From 22d9083d6dd6ff5004c58c00f716e652d6776b2c Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 31 Aug 2011 21:34:33 +0000 Subject: [PATCH] Fix the restoration of the JS auto-termination setting. All that was needed was "()", but really, not function is needed anyway, just an expression, so further simplified. --- exec/irc.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/exec/irc.js b/exec/irc.js index 12f79a2d95..b3df31f471 100644 --- a/exec/irc.js +++ b/exec/irc.js @@ -7,13 +7,7 @@ // disable auto-termination. var old_auto_terminate=js.auto_terminate; - -function restore_auto_terminate() -{ - js.auto_terminate=old_auto_terminate; -} - -js.on_exit("restore_auto_terminate"); +js.on_exit("js.auto_terminate=old_auto_terminate"); js.auto_terminate=false; const REVISION = "$Revision$".split(' ')[1]; -- GitLab