From 885160e310702f18908f33e6ced297ce371a5e6f Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Mon, 6 Aug 2012 21:36:04 +0100 Subject: added a new boolean setting `uberprompt_restore_on_exit` which determines whether it should run the code that removes the uberprompt statusbar, and resets the 'prompt' one. This is probalby only useful if you disable autostart as well. --- prompt_info/uberprompt.pl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/prompt_info/uberprompt.pl b/prompt_info/uberprompt.pl index cd64707..add8503 100644 --- a/prompt_info/uberprompt.pl +++ b/prompt_info/uberprompt.pl @@ -388,9 +388,11 @@ sub deinit { Irssi::expando_destroy('lbrace'); Irssi::expando_destroy('rbrace'); - # remove uberprompt and return the original ones. - print "Removing uberprompt and restoring original"; - restore_prompt_items(); + if (Irssi::settings_get_bool('uberprompt_restore_on_exit')) { + # remove uberprompt and return the original ones. + print "Removing uberprompt and restoring original"; + restore_prompt_items(); + } } sub init { @@ -407,6 +409,8 @@ sub init { Irssi::settings_add_bool('uberprompt', 'uberprompt_debug', 0); Irssi::settings_add_bool('uberprompt', 'uberprompt_autostart', 1); + Irssi::settings_add_bool ('uberprompt', 'uberprompt_restore_on_exit', 1); + Irssi::settings_add_bool('uberprompt', 'uberprompt_use_replaces', 0); -- cgit v1.2.3