+04Sep01=======================================================================
+1. add delete/user command
03Sep01=======================================================================
1. make spot dups look back 5 mins.
2. strip the top off each character in any text field of a Spot for duping.
'c' => [
],
'd' => [
- '^del', 'kill', 'kill',
+ '^del\w*/u', 'delete/user', 'delete/user',
'^del\w*/fu', 'kill full', 'kill',
+ '^del', 'kill', 'kill',
'^di\w*/a\w*', 'directory all', 'directory',
'^di\w*/b\w*', 'directory bulletins', 'directory',
'^di\w*/n\w*', 'directory new', 'directory',
use the script in /spider/connect/<callsign> to effect the 'chat' exchange
necessary to traverse the network(s) to logon to the cluster <callsign>.
+=== 9^DELELE/USER <callsign> ...^Delete this user from the User Database
+This command will completely remove a one or more users from the database.
+It goes without saying that you should use this command CAREFULLY!
+
=== 0^DBAVAIL^Show a list of all the Databases in the system
Title says it all really, this command lists all the databases defined
in the system. It is also aliased to SHOW/COMMAND.
+#
+# delete a user
+#
+# Please note that this is only effective if the user is not on-line
+#
+# Copyright (c) 1998 - Dirk Koopman
+#
+# $Id$
+#
+
+my ($self, $line) = @_;
+my @args = split /\s+/, $line;
+my $call;
+my @out;
+my $user;
+
+return (1, $self->msg('e5')) if $self->priv < 9;
+
+foreach $call (@args) {
+ $call = uc $call;
+ my $chan = DXChannel->get($call);
+ if ($chan) {
+ push @out, $self->msg('nodee1', $call);
+ } else {
+ $user = DXUser->get($call);
+ if ($user) {
+ $user->del;
+ push @out, $self->msg('deluser', $call);
+ Log('DXCommand', $self->msg('deluser', $call));
+ } else {
+ push @out, $self->msg('e3', "Delete/User", $call);
+ }
+ }
+}
+return (1, @out);
+++ /dev/null
-# reload the baddx file
-my $self = shift;
-my @out;
-return (1, $self->msg('e5')) if $self->priv < 9;
-do "$main::data/baddx.pl" if -e "$main::data/baddx.pl";
-push @out, $@ if $@;
-@out = ($self->msg('ok')) unless @out;
-return (1, @out);
enhanced => '5,Enhanced Client,yesno',
senddbg => '8,Sending Debug,yesno',
width => '0,Column Width',
+ disconnecting => '9,Disconnecting,yesno',
);
use vars qw($VERSION $BRANCH);
conscript => 'no connect script called \"$_[0]\" found in $main::root/connect',
confail => 'connection to $_[0] failed ($_[1])',
constart => 'connection to $_[0] started',
- disc1 => 'Disconnected by $_[0]',
- disc2 => 'Channel $_[0] disconnected',
- disc3 => 'No Channel, but connection $_[0] disconnected',
- disc4 => 'No Channel or connection but orphan $_[0] disconnected',
+ deluser => 'User $_[0] has been deleted',
db1 => 'This database is hosted at $_[0]',
db2 => 'Sorry, but key: $_[0] was not found in $_[1]',
db3 => 'Sorry, database $_[0] doesn\'t exist here',
db10 => '$_[0] records imported into $_[1]',
db11 => 'Sending your request(s) to $_[0], please stand by...',
dfreq1 => 'Invalid freq $_[0] need: eg 0/30000 or hf or hf/cw',
+ disc1 => 'Disconnected by $_[0]',
+ disc2 => 'Channel $_[0] disconnected',
+ disc3 => 'No Channel, but connection $_[0] disconnected',
+ disc4 => 'No Channel or connection but orphan $_[0] disconnected',
done => 'Done',
dup => 'Sorry, this is a duplicate',
dx1 => 'Frequency $_[0] not in band (see show/band); usage: DX [BY call] freq call comments',