X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fisolate.pl;h=b90f0c2bddeff9501963aea081cba06223d0f025;hb=e0fa9a04bfb66136a2485246c7ea1ec8f00e00e2;hp=9513a65e597a728651dd2db45415595a20dbf7eb;hpb=92195fd35c0ad190fd9e975732463b499b24c418;p=spider.git diff --git a/cmd/set/isolate.pl b/cmd/set/isolate.pl index 9513a65e..b90f0c2b 100644 --- a/cmd/set/isolate.pl +++ b/cmd/set/isolate.pl @@ -19,18 +19,23 @@ return (1, $self->msg('e5')) if $self->priv < 9; 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); $create = !$user; $user = DXUser->new($call) if $create; + my $f; + push(@out, $self->msg('isoari', $call)), $f++ if Filter::getfn('route', $call, 1); + push(@out, $self->msg('isoaro', $call)), $f++ if Filter::getfn('route', $call, 0); if ($user) { - $user->isolate(1); - $user->close(); - push @out, $self->msg($create ? 'isoc' : 'iso', $call); - Log('DXCommand', $self->msg($create ? 'isoc' : 'iso', $call)); + unless ($f) { + $user->isolate(1); + $user->close(); + push @out, $self->msg($create ? 'isoc' : 'iso', $call); + Log('DXCommand', $self->msg($create ? 'isoc' : 'iso', $call)); + } } else { push @out, $self->msg('e3', "Set/Isolate", $call); }