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