From 015e51891a2052454449c99fde521a36efdad9e2 Mon Sep 17 00:00:00 2001 From: minima Date: Tue, 15 May 2001 12:41:50 +0000 Subject: [PATCH] set/lockout now prevents any outgoing connect taking place --- Changes | 2 ++ cmd/connect.pl | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Changes b/Changes index 3b80c7a5..632b8b9c 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ +15May01======================================================================= +1. set/lockout now prevents any outgoing connection taking place. 14May01======================================================================= 1. fix problem with re-reading in db definitions for remote databases. 2. try to prevent situations where two can (semi) successfully login, probably diff --git a/cmd/connect.pl b/cmd/connect.pl index d80a468b..759785f8 100644 --- a/cmd/connect.pl +++ b/cmd/connect.pl @@ -11,6 +11,9 @@ return (1, $self->msg('already', $call)) if DXChannel->get($call); return (1, $self->msg('outconn', $call)) if grep {$_->{call} eq $call} @main::outstanding_connects; return (1, $self->msg('conscript', $lccall)) unless -e "$main::root/connect/$lccall"; +my $user = DXUser->get($call); +return (1, $self->msg('lockout', $call)) if $user->lockout; + my @out; push @out, $self->msg('constart', $call); ExtMsg::start_connect($call, "$main::root/connect/$lccall"); -- 2.43.0