projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix rcmds so that they are easier to maintain and more reliable
[spider.git]
/
cmd
/
unset
/
announce.pl
diff --git
a/cmd/unset/announce.pl
b/cmd/unset/announce.pl
index 9c6e9a9ac52e14a4c0f6fa329d627656d7bb9c01..2c4ebd30883aa7c5894e6edb3b605b51e7ecc4e8 100644
(file)
--- a/
cmd/unset/announce.pl
+++ b/
cmd/unset/announce.pl
@@
-1,5
+1,5
@@
#
#
-#
un
set the announce flag
+# set the announce flag
#
# Copyright (c) 1998 - Dirk Koopman
#
#
# Copyright (c) 1998 - Dirk Koopman
#
@@
-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);