diff options
author | Tom Feist <shabble@metavore.org> | 2010-10-14 20:37:14 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-10-14 20:37:14 +0000 |
commit | c22c282cffe793ad3f92fb842a9cb02dfd0929e0 (patch) | |
tree | 6353213012f4adbfbfae1ac368f7fec3fcf95790 /prompt_info/uberprompt.pl | |
parent | uberprompt: hopefully fixed RHS positioning on script autorun (diff) | |
download | irssi-scripts-c22c282cffe793ad3f92fb842a9cb02dfd0929e0.tar.gz irssi-scripts-c22c282cffe793ad3f92fb842a9cb02dfd0929e0.zip |
uberprompt: removed dead code from startup func.
Diffstat (limited to 'prompt_info/uberprompt.pl')
-rw-r--r-- | prompt_info/uberprompt.pl | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/prompt_info/uberprompt.pl b/prompt_info/uberprompt.pl index 0581dd3..82a294c 100644 --- a/prompt_info/uberprompt.pl +++ b/prompt_info/uberprompt.pl @@ -142,19 +142,6 @@ my $prompt_format = ''; pre_init(); sub pre_init { - # my $start_time = Irssi::parse_special('$F'); - # my $now = time(); - # my $delta = $now - $start_time; - - # print "Delta is $delta"; - # if ($delta < 2) { - # print "starting a bit later"; - # Irssi::timeout_add_once(5000, \&init, undef); - # } else { - # print "starting immediately"; - - # init(); - # } Irssi::command('statusbar prompt reset'); init(); } @@ -229,6 +216,7 @@ sub reload_settings { $DEBUG_ENABLED = Irssi::settings_get_bool('uberprompt_debug'); my $new = Irssi::settings_get_str('uberprompt_format'); + if ($prompt_format ne $new) { print "Updated prompt format" if DEBUG; $prompt_format = $new; |