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
/
dx.pl
diff --git
a/cmd/set/dx.pl
b/cmd/set/dx.pl
index 00ea032862d92f1dd180e3a91080e5593e6ac006..0edf6d545d7fd348aab2ed288d9e652552293313 100644
(file)
--- a/
cmd/set/dx.pl
+++ b/
cmd/set/dx.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
->dx(1);
- push @out,
DXM::
msg('dxs', $call);
+ my $
chan = DXChannel
->get($call);
+ if ($
chan
) {
+ $
chan
->dx(1);
+ push @out,
$self->
msg('dxs', $call);
} else {
} else {
- push @out,
DXM::
msg('e3', "Set DX Spots", $call);
+ push @out,
$self->
msg('e3', "Set DX Spots", $call);
}
}
return (1, @out);
}
}
return (1, @out);