X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fannounce.pl;h=323ff5e07b5000a09d000558e9f1b10256f9ccb4;hb=a8d4234c702d3cf6049a9e53bd07cfc924eaee25;hp=8fce45ca3731d330dfeccd2c5660afc39b2ea05e;hpb=07ea293f3919d2da76220b5fbc55b734008ed44c;p=spider.git diff --git a/cmd/set/announce.pl b/cmd/set/announce.pl index 8fce45ca..323ff5e0 100644 --- a/cmd/set/announce.pl +++ b/cmd/set/announce.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->ann(1); - push @out, DXM::msg('anns', $call); + my $chan = DXChannel->get($call); + if ($chan) { + $chan->ann(1); + $chan->user->wantann(1); + push @out, $self->msg('anns', $call); } else { - push @out, DXM::msg('e3', "Set Announce", $call); + push @out, $self->msg('e3', "Set Announce", $call); } } return (1, @out);