summaryrefslogtreecommitdiffstats
path: root/lib/ASM/Commander.pm
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2016-01-07 19:55:36 -0700
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2016-01-07 19:55:36 -0700
commit645cc36c05909b0ffd0ec9423e3633c8a1b8673b (patch)
tree434152404ce86d9150c442cf71c474dfcc815c59 /lib/ASM/Commander.pm
parent1cb83fe999b03d2c913ca409650036a8d4dd462e (diff)
Use Tie::CPHash to make %::sn and %::sc case-insensitiveish.
Clean up commands.xml and fix some bugs Add clone detection Minimize some excessive warnings Greatly improve syncing speed
Diffstat (limited to 'lib/ASM/Commander.pm')
-rw-r--r--lib/ASM/Commander.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ASM/Commander.pm b/lib/ASM/Commander.pm
index d864800..c1f93ef 100644
--- a/lib/ASM/Commander.pm
+++ b/lib/ASM/Commander.pm
@@ -35,7 +35,10 @@ sub command
next unless (defined($command->{nohush}) && ($command->{nohush} eq "nohush"));
}
if (defined($command->{flag})) { #If the command is restricted,
- if (!defined($::users->{person}->{$acct})) { #make sure the requester has an account
+ if (!defined($acct)) {
+ $fail = 1;
+ }
+ elsif (!defined($::users->{person}->{$acct})) { #make sure the requester has an account
$fail = 1;
}
elsif (!defined($::users->{person}->{$acct}->{flags})) { #make sure the requester has flags defined