1. added the start of script files on login/startup. You can now add
[spider.git] / cmd / unset / anntalk.pl
diff --git a/cmd/unset/anntalk.pl b/cmd/unset/anntalk.pl
new file mode 100644 (file)
index 0000000..7e8f012
--- /dev/null
@@ -0,0 +1,27 @@
+#
+# unset 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(0);
+    $chan->user->wantann_talk(0);
+       push @out, $self->msg('anntu', $call);
+  } else {
+    push @out, $self->msg('e3', "Unset Ann_Talk", $call);
+  }
+}
+return (1, @out);