projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now add files that the previous commit refered to
[spider.git]
/
cmd
/
set
/
dxnet.pl
diff --git
a/cmd/set/dxnet.pl
b/cmd/set/dxnet.pl
index f8e3686fd5524921ba84ba1efb02409902ad2d13..3eadff0bfad1af3738dc1adabc883d0c9dbd917a 100644
(file)
--- a/
cmd/set/dxnet.pl
+++ b/
cmd/set/dxnet.pl
@@
-1,11
+1,11
@@
#
#
-# set user type to '
S' for Spider
node
+# set user type to '
X' for DXNet
node
#
# Please note that this is only effective if the user is not on-line
#
# Copyright (c) 1998 - Dirk Koopman
#
#
# Please note that this is only effective if the user is not on-line
#
# Copyright (c) 1998 - Dirk Koopman
#
-#
$Id$
+#
#
my ($self, $line) = @_;
#
my ($self, $line) = @_;
@@
-19,11
+19,19
@@
return (1, $self->msg('e5')) if $self->priv < 5;
foreach $call (@args) {
$call = uc $call;
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ if ($call eq $main::mycall) {
+ push @out, $self->msg('e11', $call);
+ next;
+ }
+ if ($call eq $main::myalias) {
+ push @out, $self->msg('e11', $call);
+ next;
+ }
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
- $user = DXUser
->
get($call);
+ $user = DXUser
::
get($call);
$create = !$user;
$user = DXUser->new($call) if $create;
if ($user) {
$create = !$user;
$user = DXUser->new($call) if $create;
if ($user) {