X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fnode.pl;h=b560e6ef44ad6e6da9c1764facd7d02b41f4d203;hb=e72ce56ce6973656acb064366459d54cda85f8cc;hp=b681d783ab2574b219c8698b277466259546e20b;hpb=a453254d687774f352822492d500330a09fd7ebe;p=spider.git diff --git a/cmd/unset/node.pl b/cmd/unset/node.pl index b681d783..b560e6ef 100644 --- a/cmd/unset/node.pl +++ b/cmd/unset/node.pl @@ -5,7 +5,7 @@ # # Copyright (c) 1998 - Dirk Koopman # -# $Id$ +# # my ($self, $line) = @_; @@ -19,13 +19,14 @@ return (1, $self->msg('e5')) if $self->priv < 5; foreach $call (@args) { $call = uc $call; - my $chan = DXChannel->get($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->priv(0); $user->close(); push @out, $self->msg('nodeu', $call); }