projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chop out Investigate code
[spider.git]
/
cmd
/
unset
/
wwv.pl
diff --git
a/cmd/unset/wwv.pl
b/cmd/unset/wwv.pl
index e7c2286a24a17f3f76800a01ed7b0fedac6ecdee..57b041193a4454fe9fb3f3a956449ff46f084ad1 100644
(file)
--- a/
cmd/unset/wwv.pl
+++ b/
cmd/unset/wwv.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->wwv(0);
+ my $chan = DXChannel::get($call);
+ if ($chan) {
+ DXChannel::wwv($chan, 0);
+ $chan->user->wantwwv(0);
push @out, $self->msg('wwvu', $call);
} else {
push @out, $self->msg('e3', "Unset WWV", $call);
push @out, $self->msg('wwvu', $call);
} else {
push @out, $self->msg('e3', "Unset WWV", $call);