aboutsummaryrefslogtreecommitdiffstats
path: root/bin/spamcat
diff options
context:
space:
mode:
Diffstat (limited to 'bin/spamcat')
-rwxr-xr-xbin/spamcat2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/spamcat b/bin/spamcat
index dfc0876..9af410d 100755
--- a/bin/spamcat
+++ b/bin/spamcat
@@ -101,7 +101,7 @@ if ($#ARGV >= 0) {
print "$sender has $count messages remaining.\n";
} elsif ($cmd eq 'set') {
my ($sender, $count) = @ARGV;
- pod2usage(1) unless $count && $count =~ /\d+/;
+ pod2usage(1) unless defined($count) && $count =~ /\d+/;
$sch->set_count($sender, $count);
print "$sender has $count messages remaining.\n";
} else {