projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added some anti thrash code for crossing messages
[spider.git]
/
cmd
/
unset
/
announce.pl
diff --git
a/cmd/unset/announce.pl
b/cmd/unset/announce.pl
index 9c6e9a9ac52e14a4c0f6fa329d627656d7bb9c01..1ff0b548eb8d10ac0156df261f0857239af235bc 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,9
@@
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);
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);