summaryrefslogtreecommitdiffstats
path: root/scripts/hilightwin.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-01-10 17:49:34 +0000
committerDavid Leadbeater2015-01-10 17:49:34 +0000
commit2d920d6f610e176bf121f9089f21956595df70e9 (patch)
tree287ac1dba07509317309acab3161f5da286958e9 /scripts/hilightwin.pl
parent1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (diff)
parentd84f1e1808b3252af83e4963eccfd1e4f19c5326 (diff)
downloadscripts.irssi.org-2d920d6f610e176bf121f9089f21956595df70e9.tar.bz2
Merge branch 'perlcritic-e-l' of git://github.com/obfuscoder/scripts.irssi.org into obfuscoder-perlcritic-e-l
Conflicts: scripts/eng_no_translate_dpryo.pl
Diffstat (limited to 'scripts/hilightwin.pl')
-rw-r--r--scripts/hilightwin.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/hilightwin.pl b/scripts/hilightwin.pl
index f7af8a7..cb54ef2 100644
--- a/scripts/hilightwin.pl
+++ b/scripts/hilightwin.pl
@@ -6,6 +6,7 @@
# window (can be toggled) and to put up a timestamp.
#
+use strict;
use Irssi;
use POSIX;
use vars qw($VERSION %IRSSI);
@@ -34,7 +35,7 @@ sub sig_printtext {
($dest->{level} & ($opt)) &&
($dest->{level} & MSGLEVEL_NOHILIGHT) == 0
) {
- $window = Irssi::window_find_name('hilight');
+ my $window = Irssi::window_find_name('hilight');
if ($dest->{level} & MSGLEVEL_PUBLIC) {
$text = $dest->{target}.": ".$text;
@@ -47,7 +48,7 @@ sub sig_printtext {
}
}
-$window = Irssi::window_find_name('hilight');
+my $window = Irssi::window_find_name('hilight');
Irssi::print("Create a window named 'hilight'") if (!$window);
Irssi::settings_add_bool('hilightwin','hilightwin_showprivmsg',1);