+27Mar03=======================================================================
+1. play around with sh/reg, sh/iso, sh/node and sh/lock to make them work
+slightly better with the new user format.
26Mar03=======================================================================
1. add some ak1a compatibility changes to chat
2. added help text for chat, join, leave and sh/chat.
return (1, $self->msg('lockoutuse')) unless $line;
my ($action, $count, $key, $data) = (0,0,0,0);
-for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
- if ($data =~ m{lockout}) {
- if ($line eq 'ALL' || $key =~ /$line/) {
- my $ur = DXUser->get_current($key);
- if ($ur && $ur->lockout) {
- push @out, $key;
- ++$count;
+eval qq{for (\$action = DXUser::R_FIRST, \$count = 0; !\$DXUser::dbm->seq(\$key, \$data, \$action); \$action = DXUser::R_NEXT) {
+ if (\$data =~ m{lockout}) {
+ if (\$line eq 'ALL' || \$key =~ /^$line/) {
+ my \$ur = DXUser->get_current(\$key);
+ if (\$ur && \$ur->lockout) {
+ push \@out, \$key;
+ ++\$count;
}
}
}
-}
+} };
+
+push @out, $@ if $@;
return (1, @out, $self->msg('rec', $count));
my ($self, $line) = @_;
return (1, $self->msg('e5')) unless $self->priv >= 1;
+return (1, $self->msg('storable')) unless $DXUser::v3;
my @call = map {uc $_} split /\s+/, $line;
my @out;
shift @call;
my ($action, $key, $data) = (0,0,0);
for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
- if ($data =~ m{sort => '[ACRSX]'}) {
+ if ($data =~ m{\01[ACRSX]\0\0\0\04sort}) {
push @call, $key;
++$count;
}
foreach $call (@call) {
my $clref = Route::Node::get($call);
my $uref = DXUser->get_current($call);
- my ($sort, $ver);
+ my ($sort, $ver, $build);
my $pcall = sprintf "%-11s", $call;
push @out, $self->msg('snode1') unless @out > 0;
push @out, $self->msg('snode3', $call);
next;
}
+ $ver = "";
+ $build = "";
if ($call eq $main::mycall) {
$sort = "Spider";
$ver = $main::version;
} else {
$ver = $clref->version if $clref && $clref->version;
+ $ver = $uref->version if $ver && $uref->version;
}
my ($major, $minor, $subs) = unpack("AAA*", $ver) if $ver;
if ($uref->is_spider) {
- push @out, $self->msg('snode2', $pcall, $sort, "$ver ");
+ $build = "build: " . $uref->build if $uref->build;
+ push @out, $self->msg('snode2', $pcall, $sort, "$ver $build");
} else {
push @out, $self->msg('snode2', $pcall, $sort, $ver ? "$major\-$minor.$subs" : " ");
}
}
my ($action, $count, $key, $data) = (0,0,0,0);
-for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
- if ($data =~ m{registered}) {
- if (!$line || ($line && $key =~ /$line/)) {
- my $u = DXUser->get_current($key);
- if ($u && $u->registered) {
- push @out, $key;
- ++$count;
+eval qq{for (\$action = DXUser::R_FIRST, \$count = 0; !\$DXUser::dbm->seq(\$key, \$data, \$action); \$action = DXUser::R_NEXT) {
+ if (\$data =~ m{registered}) {
+ if (!\$line || (\$line && \$key =~ /^$line/)) {
+ my \$u = DXUser->get_current(\$key);
+ if (\$u && \$u->registered) {
+ push \@out, \$key;
+ ++\$count;
}
}
}
-}
+} };
+
+push @out, $@ if $@;
return (1, @out, $self->msg('rec', $count));
statvhf => 'VHF+ DX Spot Stats, last $_[1] days from $_[0]',
statvhft => 'VHF+ DX Spot Stats, last $_[2] days from $_[1] for DXCC $_[0]',
statdx => 'Total DX Spots for $_[1] days from $_[0]',
+ storable => 'Please load the Storable module from CPAN',
sun => 'Location dd/mm/yyyy Rise Set',
sun_with_azel => 'Location dd/mm/yyyy Rise Set Azim Elev',
susdb1 => 'usage: callsign state city',