summaryrefslogtreecommitdiffstats
path: root/scripts/act.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-01-10 17:00:55 +0000
committerDavid Leadbeater2015-01-10 17:00:55 +0000
commit6fa0cda4b3f7d54d5835fe580795e4f35980cc28 (patch)
tree5f38704d7c9babab81a9c2b895efa2cbe968f178 /scripts/act.pl
parentcbbdf2a1d93dbb64d3fb34346e9c57b14dfa2931 (diff)
parentd2b44a7bb135579368f93e7d4824480c000eaa64 (diff)
downloadscripts.irssi.org-6fa0cda4b3f7d54d5835fe580795e4f35980cc28.tar.bz2
Merge pull request #78 from obfuscoder/perlcritic-a
Fix perlcritic issues for all scripts starting with a
Diffstat (limited to 'scripts/act.pl')
-rw-r--r--scripts/act.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/act.pl b/scripts/act.pl
index 0b20de8..b14435f 100644
--- a/scripts/act.pl
+++ b/scripts/act.pl
@@ -4,6 +4,7 @@
# - http://www.penguin-breeder.org/irssi/
#<scriptinfo>
+use strict;
use vars qw($VERSION %IRSSI);
use Irssi 20020120;
@@ -32,6 +33,8 @@ $VERSION = "0.13";
sub cmd_act {
my ($data, $server, $channel) = @_;
+ my $level;
+
if ($data eq "") {
$level = 1;
} elsif ($data =~ /^public$/i) {
@@ -55,7 +58,7 @@ sub cmd_act {
}
my @arguments = ('public', 'all');
-sub sig_complete ($$$$$) {
+sub sig_complete {
my ($list, $window, $word, $linestart, $want_space) = @_;
return unless $linestart =~ /^.act/;
foreach my $arg (@arguments) {