From: minima Date: Tue, 15 May 2001 12:41:50 +0000 (+0000) Subject: set/lockout now prevents any outgoing connect taking place X-Git-Tag: OLDROUTE_1_48~15 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=015e51891a2052454449c99fde521a36efdad9e2;p=spider.git set/lockout now prevents any outgoing connect taking place --- 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");