From c22c282cffe793ad3f92fb842a9cb02dfd0929e0 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Thu, 14 Oct 2010 21:37:14 +0100 Subject: uberprompt: removed dead code from startup func. --- prompt_info/uberprompt.pl | 14 +------------- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3