X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=cmd%2Fset%2Fanntalk.pl;fp=cmd%2Fset%2Fanntalk.pl;h=eec6540010d3c701ce58965c249dd4886866b3ed;hb=8f58735f5c9c090f2e5e00e05c7ad0834eccb741;hp=0000000000000000000000000000000000000000;hpb=e0e6a2d303693eb681a6eefa90a2821ddfdeb5fd;p=spider.git diff --git a/cmd/set/anntalk.pl b/cmd/set/anntalk.pl new file mode 100644 index 00000000..eec65400 --- /dev/null +++ b/cmd/set/anntalk.pl @@ -0,0 +1,27 @@ +# +# set the allow talklike announce 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->ann_talk(1); + $chan->user->wantann_talk(1); + push @out, $self->msg('annts', $call); + } else { + push @out, $self->msg('e3', "Set Ann_Talk", $call); + } +} +return (1, @out);