summaryrefslogtreecommitdiffstats
path: root/debian/patches/hilightwin.pl.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/hilightwin.pl.diff')
-rw-r--r--debian/patches/hilightwin.pl.diff27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/hilightwin.pl.diff b/debian/patches/hilightwin.pl.diff
new file mode 100644
index 0000000..f6d3903
--- /dev/null
+++ b/debian/patches/hilightwin.pl.diff
@@ -0,0 +1,27 @@
+Description: Add patch for different hilightwin name
+Forwarded: not-needed
+Author: Gerfried Fuchs <rhonda@debian.org>
+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', '');