X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fwwv.pl;h=d713e48311195c1ec7ccf1c4059ec0c77e22491d;hb=668e4252d23e2eda2a6b234f1031e1c1a5f43d15;hp=2e403cec49db4dd9d0c0cef3e8bacdd6da40f4ff;hpb=07ea293f3919d2da76220b5fbc55b734008ed44c;p=spider.git diff --git a/cmd/set/wwv.pl b/cmd/set/wwv.pl index 2e403cec..d713e483 100644 --- a/cmd/set/wwv.pl +++ b/cmd/set/wwv.pl @@ -15,12 +15,13 @@ my @out; foreach $call (@args) { $call = uc $call; - my $user = ($call eq $self->call) ? $self->user : DXUser->get($call); - if ($user) { - $user->wwv(1); - push @out, DXM::msg('wwvs', $call); + my $chan = DXChannel->get($call); + if ($chan) { + $chan->wwv(1); + $chan->user->wantwwv(1); + push @out, $self->msg('wwvs', $call); } else { - push @out, DXM::msg('e3', "Set WWV", $call); + push @out, $self->msg('e3', "Set WWV", $call); } } return (1, @out);