aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spamcat3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/spamcat b/bin/spamcat
index 60fdf46..dfc0876 100755
--- a/bin/spamcat
+++ b/bin/spamcat
@@ -96,7 +96,8 @@ if ($#ARGV >= 0) {
} elsif ($cmd eq 'get') {
my $sender = shift @ARGV;
pod2usage(1) unless $sender;
- my $count = $sch->get_count($sender) || $conf{default_count};
+ my $count = $sch->get_count($sender);
+ $count = $conf{default_count} if (!defined $count);
print "$sender has $count messages remaining.\n";
} elsif ($cmd eq 'set') {
my ($sender, $count) = @ARGV;