X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fconnect.pl;h=fd893974bb3673dfd87b921f1833afc7749a5a0d;hb=ab811a0c902225075a9bd69749f65594079433a9;hp=759785f87680ee4b7e56e4e55ba21437295439b4;hpb=015e51891a2052454449c99fde521a36efdad9e2;p=spider.git diff --git a/cmd/connect.pl b/cmd/connect.pl index 759785f8..fd893974 100644 --- a/cmd/connect.pl +++ b/cmd/connect.pl @@ -7,12 +7,12 @@ my $lccall = lc $call; return (1, $self->msg('e5')) if $self->priv < 5; return (1, $self->msg('e6')) unless $call gt ' '; -return (1, $self->msg('already', $call)) if DXChannel->get($call); +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 $user = DXUser::get($call); +return (1, $self->msg('lockout', $call)) if $user && $user->lockout; my @out; push @out, $self->msg('constart', $call);