diff options
| author | David Leadbeater | 2014-10-20 22:46:12 +0100 |
|---|---|---|
| committer | David Leadbeater | 2014-10-20 22:46:12 +0100 |
| commit | 5d2811af5d3d29b524936ac95e7b1b3d5144a9ce (patch) | |
| tree | 0f0b84efd10e9288695d86b69de324c467fe4e7b /scripts/relm.pl | |
| parent | 263a56d196da657b72ccf2b195b50008d6a988dc (diff) | |
| parent | dd80027b51b3ee71027a2612595aee38e38c0d6e (diff) | |
| download | scripts.irssi.org-5d2811af5d3d29b524936ac95e7b1b3d5144a9ce.tar.bz2 | |
Merge pull request #81 from obfuscoder/perlcritic-m-r
Fix perlcritic issues for all scripts starting with m to r
Diffstat (limited to 'scripts/relm.pl')
| -rw-r--r-- | scripts/relm.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/relm.pl b/scripts/relm.pl index 96363cb..e71eb59 100644 --- a/scripts/relm.pl +++ b/scripts/relm.pl @@ -6,6 +6,7 @@ ## to redirect last message to current channel/query: ## /RELM +use strict; use Irssi; use vars qw($VERSION %IRSSI); @@ -19,6 +20,8 @@ $VERSION = "1.0"; changed => "Fri Mar 15 15:09:42 CET 2002" ); +my %relm; + sub cmd_relm { my ($args, $server, $winit) = @_; my $ircnet = lc($server->{tag}); @@ -28,7 +31,7 @@ sub cmd_relm { $which = scalar(@{$relm{lc($ircnet)}}) unless ($which); - unless (@relm{$ircnet}) { + unless ($relm{$ircnet}) { Irssi::print("%R>>%n Nothing in relm buffer on $ircnet.", MSGLEVEL_CRAP); return; } |
