]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Print separator only if it's not an empty string
authorvague666 <redacted>
Thu, 29 Mar 2018 11:14:39 +0000 (13:14 +0200)
committervague666 <redacted>
Thu, 29 Mar 2018 11:14:39 +0000 (13:14 +0200)
scripts/buf.pl

index 32ae521a331f6bc6ef41ff13ea8055a6b12e8c61..0b37e9de12a729b30a1b77e4e4de3f595c5e6c15 100644 (file)
@@ -93,7 +93,7 @@ sub restore {
             $window->gui_printtext_after($window->last_line_insert, $level, "$data\n");
         }
         my $sep = settings_get_str 'upgrade_separator';
-        $window->gui_printtext_after($window->last_line_insert, MSGLEVEL_CLIENTNOTICE, "\cO$sep\n") if defined $sep;
+        $window->gui_printtext_after($window->last_line_insert, MSGLEVEL_CLIENTNOTICE, "\cO$sep\n") if $sep ne '';
         $view->redraw();
     }
     active_win->command('^window scroll on');
git clone https://git.99rst.org/PROJECT