summaryrefslogtreecommitdiffstats
path: root/debian/patches/hilightwin.pl.diff
blob: f6d39030a64b1638a2f0e9589c6535393b9ee9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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', '');