projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nospawnify the rest of the known commands
[spider.git]
/
cmd
/
unset
/
announce.pl
diff --git
a/cmd/unset/announce.pl
b/cmd/unset/announce.pl
index 9c6e9a9ac52e14a4c0f6fa329d627656d7bb9c01..6b30857a28cbb8902bce413d858d4282a1770f53 100644
(file)
--- a/
cmd/unset/announce.pl
+++ b/
cmd/unset/announce.pl
@@
-1,9
+1,9
@@
#
#
-#
un
set the announce flag
+# set the announce flag
#
# Copyright (c) 1998 - Dirk Koopman
#
#
# Copyright (c) 1998 - Dirk Koopman
#
-#
$Id$
+#
#
my ($self, $line) = @_;
#
my ($self, $line) = @_;
@@
-15,9
+15,10
@@
my @out;
foreach $call (@args) {
$call = uc $call;
foreach $call (@args) {
$call = uc $call;
- my $user = ($call eq $self->call) ? $self->user : DXUser->get($call);
- if ($user) {
- $user->ann(0);
+ my $chan = DXChannel::get($call);
+ if ($chan) {
+ $chan->ann(0);
+ $chan->user->wantann(0);
push @out, $self->msg('annu', $call);
} else {
push @out, $self->msg('e3', "Unset Announce", $call);
push @out, $self->msg('annu', $call);
} else {
push @out, $self->msg('e3', "Unset Announce", $call);