X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Ftalk.pl;h=70bde6e79a468a41dd7e952e4166d1564d24858c;hb=5275b86607057a0960cdf03b41b8092a3d813e57;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=6b6a8002929017b6d4217f68fa492a2d728ee1fe;p=spider.git diff --git a/cmd/set/talk.pl b/cmd/set/talk.pl index e69de29b..70bde6e7 100644 --- a/cmd/set/talk.pl +++ b/cmd/set/talk.pl @@ -0,0 +1,27 @@ +# +# set the talk flag +# +# Copyright (c) 1998 - Dirk Koopman +# +# $Id$ +# + +my ($self, $line) = @_; +my @args = split /\s+/, $line; +my $call; +my @out; + +@args = $self->call if (!@args || $self->priv < 9); + +foreach $call (@args) { + $call = uc $call; + my $chan = DXChannel->get($call); + if ($chan) { + $chan->talk(1); + $chan->user->wanttalk(1); + push @out, $self->msg('talks', $call); + } else { + push @out, $self->msg('e3', "Set Talk", $call); + } +} +return (1, @out);