X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Ftalk.pl;h=c693cca57820443d9c452b32414f12eea643e801;hb=c3c15883cf25add24fc49e32eb0d17dce6839a62;hp=7b119c10ae8593cc573b9b415157c89072afa907;hpb=b060a0a3ee72530aa3f10d453186a662b66d7efe;p=spider.git diff --git a/cmd/unset/talk.pl b/cmd/unset/talk.pl index 7b119c10..c693cca5 100644 --- a/cmd/unset/talk.pl +++ b/cmd/unset/talk.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->talk(0); + my $chan = DXChannel::get($call); + if ($chan) { + $chan->talk(0); + $chan->user->wanttalk(0); push @out, $self->msg('talku', $call); } else { push @out, $self->msg('e3', "Unset Talk", $call);