projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed one ot two little buglets
[spider.git]
/
perl
/
cluster.pl
diff --git
a/perl/cluster.pl
b/perl/cluster.pl
index 16a03037af07781172635925a2b88124c51098d7..32f90d88ded118a462f2b75bc247352d3d23c726 100755
(executable)
--- a/
perl/cluster.pl
+++ b/
perl/cluster.pl
@@
-10,6
+10,8
@@
# $Id$
#
# $Id$
#
+require 5.004;
+
# make sure that modules are searched in the order local then perl
BEGIN {
# root of directory tree for this system
# make sure that modules are searched in the order local then perl
BEGIN {
# root of directory tree for this system
@@
-98,23
+100,16
@@
sub rec
return;
}
}
return;
}
}
+ $user->{lang} = $main::lang if !$user->{lang}; # to autoupdate old systems
} else {
} else {
- if (DXCluster->get($call)
|| DXChannel->get($call)
) {
+ if (DXCluster->get($call)) {
my $mess = DXM::msg($lang, 'conother', $call);
already_conn($conn, $call, $mess);
return;
}
my $mess = DXM::msg($lang, 'conother', $call);
already_conn($conn, $call, $mess);
return;
}
- }
-
-
- # the user MAY have an SSID if local, but otherwise doesn't
- $user = DXUser->get($call);
- if (!defined $user) {
$user = DXUser->new($call);
$user = DXUser->new($call);
- } else {
- $user->{lang} = $main::lang if !$user->{lang}; # to autoupdate old systems
}
}
-
+
# is he locked out ?
if ($user->lockout) {
Log('DXCommand', "$call is locked out, disconnected");
# is he locked out ?
if ($user->lockout) {
Log('DXCommand', "$call is locked out, disconnected");