diff options
author | Tom Feist <shabble@metavore.org> | 2010-10-10 20:47:40 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-10-10 20:47:40 +0000 |
commit | 6c06bc858315a0802c0b901555873de4eccaf966 (patch) | |
tree | 355a9feea310b0c4fab1efb2c5d36f561bdca4f1 /prompt_info/uberprompt.pl | |
parent | removed compat mode for prompt-info, since we no longer adhere to the same (diff) | |
download | irssi-scripts-6c06bc858315a0802c0b901555873de4eccaf966.tar.gz irssi-scripts-6c06bc858315a0802c0b901555873de4eccaf966.zip |
re-added additional signals to refresh prompt when needed
Diffstat (limited to 'prompt_info/uberprompt.pl')
-rw-r--r-- | prompt_info/uberprompt.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/prompt_info/uberprompt.pl b/prompt_info/uberprompt.pl index 45a5d0b..390e8e5 100644 --- a/prompt_info/uberprompt.pl +++ b/prompt_info/uberprompt.pl @@ -149,7 +149,7 @@ sub init { Irssi::statusbar_item_register('uberprompt', 0, 'uberprompt_draw'); - Irssi::settings_add_str('uberprompt', 'uberprompt_format', '[$* $uber] '); + Irssi::settings_add_str('uberprompt', 'uberprompt_format', '[$*$uber] '); Irssi::settings_add_bool('uberprompt', 'uberprompt_debug', 0); Irssi::settings_add_bool('uberprompt', 'uberprompt_autostart', 1); @@ -173,6 +173,12 @@ sub init { # intialise the prompt format. reload_settings(); + # make sure we redraw when necessary. + Irssi::signal_add('window changed', \&uberprompt_draw); + Irssi::signal_add('window name changed', \&uberprompt_draw); + Irssi::signal_add('window changed automatic', \&uberprompt_draw); + Irssi::signal_add('window item changed', \&uberprompt_draw); + # install our statusbars if required. if (Irssi::settings_get_bool('uberprompt_autostart')) { replace_prompt_items(); |