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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
Description: Add patch for different hilightwin name
Forwarded: no
Author: Gerfried Fuchs <rhonda@debian.org>
Last-Update: 2016-02-29
--- a/scripts/hilightwin.pl
+++ b/scripts/hilightwin.pl
@@ -13,13 +13,13 @@ use vars qw($VERSION %IRSSI);
$VERSION = "0.04";
%IRSSI = (
- authors => "Timo \'cras\' Sirainen, Mark \'znx\' Sangster",
- contact => "tss\@iki.fi, znxster\@gmail.com",
+ authors => "Timo \'cras\' Sirainen, Mark \'znx\' Sangster, Gerfried Fuchs",
+ contact => "tss\@iki.fi, znxster\@gmail.com, rhonda\@deb.at",
name => "hilightwin",
description => "Print hilighted messages to window named \"hilight\"",
license => "Public Domain",
url => "http://irssi.org/",
- changed => "Sun May 25 18:59:57 BST 2008"
+ changed => "Mon, 12 Mar 2012 10:14:05 +0100"
);
sub sig_printtext {
@@ -35,7 +35,7 @@ sub sig_printtext {
($dest->{level} & ($opt)) &&
($dest->{level} & MSGLEVEL_NOHILIGHT) == 0
) {
- 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;
@@ -45,8 +45,9 @@ sub sig_printtext {
}
}
-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);
|