X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcluster.pl;h=c9b49182d09f9965c7174e295bd833649f514525;hb=5bbe803ffc8771aa87c9d37ca92170f13bbc6bc1;hp=36989dee124c599160c31866d34232dff7753974;hpb=cbb522ef802d48991734a4ce803fa6ffa9774588;p=spider.git diff --git a/perl/cluster.pl b/perl/cluster.pl index 36989dee..c9b49182 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -253,16 +253,16 @@ sub new_channel } # is he locked out ? + my $lock; $user = DXUser::get_current($call); $conn->conns($call); my $basecall = $call; - $basecall =~ s/-\d+$//; # remember this for later multiple user processing - my $lock; + $basecall =~ s/-\d+$//; # remember this for later multiple user processing, it's used for other stuff than checking lockout status if ($user) { # make sure we act on any locked status that the actual incoming call has. $lock = $user->lockout; - } elsif ($allowmultiple && $call ne $basecall) { - # if we are allowing multiple connections and there is a basecall minus incoming ssid, use the basecall's lock status + } elsif ($basecall ne $call) { + # if there isn't a SSID on the $call, then try the base $user = DXUser::get_current($basecall); $lock = $user->lockout if $user; } @@ -488,7 +488,7 @@ sub setup_start } # open the debug file, set various FHs to be unbuffered - dbginit($broadcast_debug ? \&DXCommandmode::broadcast_debug : undef); + dbginit(undef, $broadcast_debug ? \&DXCommandmode::broadcast_debug : undef); foreach (@debug) { dbgadd($_); } @@ -749,7 +749,7 @@ sub idle_loop $main::me->disconnect; } - Mojo::IOLoop->stop if --$ending <= 0; + Mojo::IOLoop->stop_gracefully if --$ending <= 0; } }