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
/
set
/
announce.pl
diff --git
a/cmd/set/announce.pl
b/cmd/set/announce.pl
index 8fce45ca3731d330dfeccd2c5660afc39b2ea05e..dd6240476579e16d96b3b9dff18349b4de7c2b77 100644
(file)
--- a/
cmd/set/announce.pl
+++ b/
cmd/set/announce.pl
@@
-15,12
+15,12
@@
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(1);
- push @out,
DXM::
msg('anns', $call);
+ my $
chan = DXChannel
->get($call);
+ if ($
chan
) {
+ $
chan
->ann(1);
+ push @out,
$self->
msg('anns', $call);
} else {
} else {
- push @out,
DXM::
msg('e3', "Set Announce", $call);
+ push @out,
$self->
msg('e3', "Set Announce", $call);
}
}
return (1, @out);
}
}
return (1, @out);