diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/spamcat | 2 |
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 { |