Description: Add patch for different hilightwin name Forwarded: not-needed Author: Gerfried Fuchs Last-Update: 2017-07-12 --- a/scripts/hilightwin.pl +++ b/scripts/hilightwin.pl @@ -60,7 +60,7 @@ ($dest->{level} & MSGLEVEL_NOHILIGHT) == 0 && (!is_ignored($dest)) ) { - my $window = Irssi::window_find_name('hilight'); + my $window = Irssi::window_find_name(Irssi::settings_get_str('hilightwin_windowname')); if ($dest->{level} & MSGLEVEL_PUBLIC) { $text = $dest->{target}.": ".$text; @@ -73,8 +73,9 @@ } } -my $window = Irssi::window_find_name('hilight'); -Irssi::print("Create a window named 'hilight'") if (!$window); +Irssi::settings_add_str('hilightwin','hilightwin_windowname', 'hilight'); +my $window = Irssi::window_find_name(Irssi::settings_get_str('hilightwin_windowname')); +Irssi::print("Create a window named '" . Irssi::settings_get_str('hilightwin_windowname') . "'") if (!$window); Irssi::settings_add_bool('hilightwin','hilightwin_showprivmsg',1); Irssi::settings_add_str('hilightwin', 'hilightwin_ignore_targets', '');