aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2012-08-06 20:36:04 +0000
committerTom Feist <shabble@metavore.org>2012-08-06 20:36:04 +0000
commit885160e310702f18908f33e6ced297ce371a5e6f (patch)
tree09a19f694a4226ad70cacbf3fa1a92298072242d
parentclean up a bit of the content/style of doc patch by rking. (diff)
downloadirssi-scripts-885160e310702f18908f33e6ced297ce371a5e6f.tar.gz
irssi-scripts-885160e310702f18908f33e6ced297ce371a5e6f.zip
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.
-rw-r--r--prompt_info/uberprompt.pl10
1 files 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);