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