X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fwwv.pl;h=075338a25e7d7bf770255aad0a1d30848b712f3d;hb=64b4171276c84a8df58776608dd9f568adef27b2;hp=6495235f3ee9c0e1dc41ab805c0e96c48014d6e9;hpb=07ea293f3919d2da76220b5fbc55b734008ed44c;p=spider.git diff --git a/cmd/unset/wwv.pl b/cmd/unset/wwv.pl index 6495235f..075338a2 100644 --- a/cmd/unset/wwv.pl +++ b/cmd/unset/wwv.pl @@ -15,12 +15,12 @@ my @out; foreach $call (@args) { $call = uc $call; - my $user = ($call eq $self->call) ? $self->user : DXUser->get($call); - if ($user) { - $user->wwv(0); - push @out, DXM::msg('wwvu', $call); + my $chan = DXChannel->get($call); + if ($chan) { + $chan->wwv(0); + push @out, $self->msg('wwvu', $call); } else { - push @out, DXM::msg('e3', "Unset WWV", $call); + push @out, $self->msg('e3', "Unset WWV", $call); } } return (1, @out);