1. added forward/latlong which will forward ALL the users that have a latitude
and longitude set on them to one or more locally connected nodes - with a hop
count of 1.
+2. speeded up the show/node command by using the DB_File interface and
+sequentially reading the data directly and only 'get'ting the ones that are
+nodes.
+3. did the same for show/isolate and show/lockout.
28Jul00=======================================================================
1. fixed watchdbg midnight rollover loop and removed the date part of the
date/time translation to leave just the time.
#
-# merge_qra <node>
+# forward/latlong <node> ...
#
# send out PC41s toward a node for every user that has a lat/long
#
}
}
}
-return(1, @out, "$count records sent");
+return(1, @out, $self->msg('rec', $count));
my ($self, $line) = @_;
return (1, $self->msg('e5')) unless $self->priv >= 1;
-# search thru the user for nodes
-my @out = sort map { my $ref; (($ref = DXUser->get_current($_)) && $ref->isolate) ? $_ : () } DXUser::get_all_calls;
-return (1, @out);
+my @out;
+
+use DB_File;
+
+my ($action, $count, $key, $data);
+for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = R_NEXT) {
+ if ($data =~ m{isolate =>}) {
+ my $u = DXUser->get_current($key);
+ if ($u && $u->isolate) {
+ push @out, $key;
+ ++$count;
+ }
+ }
+}
+
+return (1, @out, $self->msg('rec', $count));
+
+
my ($self, $line) = @_;
return (1, $self->msg('e5')) unless $self->priv >= 9;
-# search thru the user for nodes
-my @out = sort map { my $ref; (($ref = DXUser->get_current($_)) && $ref->lockout) ? $_ : () } DXUser::get_all_calls;
-return (1, @out);
+my @out;
+
+use DB_File;
+
+my ($action, $count, $key, $data);
+for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = R_NEXT) {
+ if ($data =~ m{lockout =>}) {
+ my $u = DXUser->get_current($key);
+ if ($u && $u->lockout) {
+ push @out, $key;
+ ++$count;
+ }
+ }
+}
+
+return (1, @out, $self->msg('rec', $count));
+
# search thru the user for nodes
unless (@call) {
-# the official way
-# @call = sort map { my $ref; (($ref = DXUser->get_current($_)) && $ref->sort ne 'U') ? $_ : () } DXUser::get_all_calls;
use DB_File;
my ($action, $count, $key, $data);
}
}
-return (1, @out);
+return (1, @out, $self->msg('rec', $count));
qrae2 => 'Don\'t recognise \"$_[0]\" as a QRA locator (eg JO02LQ)',
qra => 'Your QRA Locator is now \"$_[0]\"',
rcmdo => 'RCMD \"$_[0]\" sent to $_[1]',
+ rec => '$_[0] records',
read1 => 'Sorry, no new messages for you',
read2 => 'Msg $_[0] not found',
read3 => 'Msg $_[0] not available',