added set/unset isolate and unset/node (untested)
authordjk <djk>
Sat, 19 Dec 1998 23:25:09 +0000 (23:25 +0000)
committerdjk <djk>
Sat, 19 Dec 1998 23:25:09 +0000 (23:25 +0000)
cmd/set/isolate.pl [new file with mode: 0644]
cmd/unset/isolate.pl [new file with mode: 0644]
cmd/unset/node.pl [new file with mode: 0644]
connect/gb7tlh
perl/Messages

diff --git a/cmd/set/isolate.pl b/cmd/set/isolate.pl
new file mode 100644 (file)
index 0000000..b008a9b
--- /dev/null
@@ -0,0 +1,38 @@
+#
+# set isolation for this node
+#
+# 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;
+my $create;
+
+return (0) 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);
+       $create = !$user;
+       $user = DXUser->new($call) if $create;
+       if ($user) {
+         $user->isolate(1);
+         $user->close();
+      push @out, $self->msg($create ? 'isoc' : 'iso', $call);
+       } else {
+      push @out, $self->msg('e3', "Set/Isolate", $call);
+       }
+  }
+}
+return (1, @out);
diff --git a/cmd/unset/isolate.pl b/cmd/unset/isolate.pl
new file mode 100644 (file)
index 0000000..13fbf65
--- /dev/null
@@ -0,0 +1,33 @@
+#
+# set user type BACK TO  'U' (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;
+my $create;
+
+return (0) if $self->priv < 5;
+
+foreach $call (@args) {
+  $call = uc $call;
+  my $chan = DXChannel->get($call);
+  if ($chan) {
+       push @out, $self->msg('nodee1', $call);
+  } else {
+    $user = DXUser->get($call);
+       return (1, $self->msg('usernf', $call)) if !$user; 
+       $user->isolate(0);
+       $user->close();
+    push @out, $self->msg('isou', $call);
+  }
+}
+return (1, @out);
diff --git a/cmd/unset/node.pl b/cmd/unset/node.pl
new file mode 100644 (file)
index 0000000..bd0a29e
--- /dev/null
@@ -0,0 +1,33 @@
+#
+# set user type BACK TO  'U' (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;
+my $create;
+
+return (0) if $self->priv < 5;
+
+foreach $call (@args) {
+  $call = uc $call;
+  my $chan = DXChannel->get($call);
+  if ($chan) {
+       push @out, $self->msg('nodee1', $call);
+  } else {
+    $user = DXUser->get($call);
+       return (1, $self->msg('usernf', $call)) if !$user; 
+       $user->sort('U');
+       $user->close();
+    push @out, $self->msg('nodeu', $call);
+  }
+}
+return (1, @out);
index de20f6e16414ad647a1d23311d0a05591f54bcde..a2834ab494662ce3c1d0cb9804770897a6a74a4e 100644 (file)
@@ -1,7 +1,11 @@
 timeout 15
 # don't forget to chmod 4775 netrom_call!
-connect ax25 /usr/sbin/netrom_call bbs gb7djk g1tlh
-'Connect' ''
-'Connect' 'cluster'
-'Connect'
-client gb7tlh ax25
+#connect ax25 /usr/sbin/netrom_call bbs gb7djk g1tlh
+#'Connect' ''
+#'Connect' 'cluster'
+#'Connect'
+#client gb7tlh ax25
+connect telnet dirk1
+'login' 'djk'
+'word' 'b390vpw'
+'last'
index 16ad509edcd0af3700030e76206ee6cfac161ce9..a7250016ed320dd008f0c5373e8794a01784d77b 100644 (file)
@@ -51,6 +51,9 @@ package DXM;
                                homenode => 'Home Node set to: $_[0]',
                                hnodee1 => 'Please enter your Home Node, set/homenode <your home DX Cluster>',
                                hnode => 'Your Homenode is now \"$_[0]\"',
+                               iso => '$_[0] Isolated',
+                               isou => '$_[0] UnIsolated',
+                               isoc => '$_[0] created and Isolated',
                                l1 => 'Sorry $_[0], you are already logged on on another channel',
                                l2 => 'Hello $_[0], this is $main::mycall in $main::myqth running DXSpider V$main::version',
                                loce1 => 'Please enter your location,, set/location <latitude longitude>',
@@ -63,6 +66,7 @@ package DXM;
                                namee2 => 'Can\'t find user $_[0]!',
                                name => 'Your name is now \"$_[0]\"',
                                node => '$_[0] set as AK1A style Node',
+                               nodeu => '$_[0] set back as a User',
                                nodec => '$_[0] created as AK1A style Node',
                                nodee1 => 'You cannot use this command whilst your target ($_[0]) is on-line',
                                ok => 'Operation successful',