summaryrefslogtreecommitdiff
path: root/pingd
diff options
context:
space:
mode:
Diffstat (limited to 'pingd')
-rwxr-xr-xpingd11
1 files changed, 9 insertions, 2 deletions
diff --git a/pingd b/pingd
index 8c4dcbf..8b2824b 100755
--- a/pingd
+++ b/pingd
@@ -405,8 +405,15 @@ sub command_set(@) {
my @argv = @_;
my @settings;
- while (scalar @argv && $argv[0] =~ /^(showit|pingit|fetch)=(on|off)$/) {
- push @settings, $argv[0];
+ while (scalar @argv && $argv[0] =~ /^(show(?:it)?|ping(?:it)?|fetch(?:it))=(on|off)$/) {
+ $name = $1;
+ $value = $2;
+
+ $name = 'showit' if ($name eq 'show');
+ $name = 'pingit' if ($name eq 'ping');
+ $name = 'fetch' if ($name eq 'fetchit');
+
+ push @settings, "$name=$value";
shift @argv;
};