X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fwwv.pl;h=57b041193a4454fe9fb3f3a956449ff46f084ad1;hb=934a5db829e43833c5f6c45c8cd9919dcfe734b9;hp=e7c2286a24a17f3f76800a01ed7b0fedac6ecdee;hpb=b060a0a3ee72530aa3f10d453186a662b66d7efe;p=spider.git diff --git a/cmd/unset/wwv.pl b/cmd/unset/wwv.pl index e7c2286a..57b04119 100644 --- a/cmd/unset/wwv.pl +++ b/cmd/unset/wwv.pl @@ -15,9 +15,10 @@ my @out; foreach $call (@args) { $call = uc $call; - my $user = ($call eq $self->call) ? $self->user : DXUser->get($call); - if ($user) { - $user->wwv(0); + my $chan = DXChannel::get($call); + if ($chan) { + DXChannel::wwv($chan, 0); + $chan->user->wantwwv(0); push @out, $self->msg('wwvu', $call); } else { push @out, $self->msg('e3', "Unset WWV", $call);