summaryrefslogtreecommitdiff
path: root/pingd
diff options
context:
space:
mode:
Diffstat (limited to 'pingd')
-rwxr-xr-xpingd10
1 files changed, 5 insertions, 5 deletions
diff --git a/pingd b/pingd
index 157ec56..26461b6 100755
--- a/pingd
+++ b/pingd
@@ -406,8 +406,8 @@ sub command_set(@) {
my @settings;
while (scalar @argv && $argv[0] =~ /^(show(?:it)?|ping(?:it)?|fetch(?:it))=(on|off)$/) {
- $name = $1;
- $value = $2;
+ my $name = $1;
+ my $value = $2;
$name = 'showit' if ($name eq 'show');
$name = 'pingit' if ($name eq 'ping');
@@ -453,11 +453,11 @@ sub command_enabledisable (@) {
my $value;
if ($command eq 'enable') {
$value='on';
- elsif ($command eq 'disable') {
+ } elsif ($command eq 'disable') {
$value='off';
- else
+ } else {
die ("argument $command is not enable or disable. Shouldn't even be here.\n");
- }
+ };
my @cmd = ("showit=$value", "pingit=$value", "fetch=$value");
push @cmd, @argv;
command_setremailercaps(@argv);