return "show/$name: ${s}not found";
}
- for (sort {$a <=> $b } @in) {
+ for (sort {$a cmp $b } @in) {
push @out, [ split /\^/ ]
}
$t //= 0;
if ($ref->is_user) {
- if ($ref->{priv} == 0 && $main::systime > $t + $tooold) {
+ if (!$ref->{priv} && $main::systime > $t + $tooold) {
unless (($ref->{lat} && $ref->{long}) || $ref->{qth} || $ref->{name} || $ref->{qra}) {
LogDbg('DXCommand', sprintf("$ref->{call} deleted, empty and too Old at %s", difft($t, ' ')));
++$del;
dbg(carp("Export Error2: delete '$key' => '$val' $@")) if $@;
next;
}
- if ($ref->{lockout} == 1 && $ref->{priv} == 1) {
+ if (exists $ref->{lockout} && $ref->{lockout} == 1 && exists $ref->{priv} && $ref->{priv} == 1) {
LogDbg('DXCommand', "$ref->{call} depriv'd and unlocked");
$ref->{lockout} = $ref->{priv} = 0;
$ref->put;