projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix disconnect from peer
[spider.git]
/
cmd
/
set
/
node.pl
diff --git
a/cmd/set/node.pl
b/cmd/set/node.pl
index 81627f337ec814b3e9dcf191942a3b6b0cf84140..8a1f811170eb7baec3fc02940665dfeb67ad5197 100644
(file)
--- a/
cmd/set/node.pl
+++ b/
cmd/set/node.pl
@@
-5,7
+5,7
@@
#
# Copyright (c) 1998 - Dirk Koopman
#
#
# Copyright (c) 1998 - Dirk Koopman
#
-#
$Id$
+#
#
my ($self, $line) = @_;
#
my ($self, $line) = @_;
@@
-19,17
+19,20
@@
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);
+ 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_exac
t($call);
+ $user = DXUser
::ge
t($call);
$create = !$user;
$user = DXUser->new($call) if $create;
if ($user) {
$user->sort('A');
$create = !$user;
$user = DXUser->new($call) if $create;
if ($user) {
$user->sort('A');
+ $user->homenode($call);
+ $user->lockout(0);
+ $user->priv(1) unless $user->priv;
$user->close();
$user->close();
- push @out, $self->msg($create ? 'node
c' : 'node
', $call);
+ push @out, $self->msg($create ? 'node
ac' : 'nodea
', $call);
} else {
push @out, $self->msg('e3', "Set Node", $call);
}
} else {
push @out, $self->msg('e3', "Set Node", $call);
}