]> gb7djk.dxcluster.net Git - spider.git/blob - cmd/unset/talk.pl
add warning about filters and set/skimmer
[spider.git] / cmd / unset / talk.pl
1 #
2 # unset the talk flag
3 #
4 # Copyright (c) 1998 - Dirk Koopman
5 #
6 #
7 #
8
9 my ($self, $line) = @_;
10 my @args = split /\s+/, $line;
11 my $call;
12 my @out;
13
14 @args = $self->call if (!@args || $self->priv < 9);
15
16 foreach $call (@args) {
17   $call = uc $call;
18   my $chan = DXChannel::get($call);
19   if ($chan) {
20     $chan->talk(0);
21         $chan->user->wanttalk(0);
22         push @out, $self->msg('talku', $call);
23   } else {
24     push @out, $self->msg('e3', "Unset Talk", $call);
25   }
26 }
27 return (1, @out);