mirror of
git://scm.dxcluster.org/scm/spider
synced 2024-09-22 00:07:10 +00:00
fxied infinite loop
This commit is contained in:
parent
b9442c2b06
commit
ce2e3045ba
@ -270,6 +270,10 @@ sub dochat
|
||||
$line = <$rfh>;
|
||||
$line =~ s/\r//og;
|
||||
}
|
||||
if (length $line == 0) {
|
||||
dbg('connect', "received 0 length line, aborting...");
|
||||
cease(11);
|
||||
}
|
||||
dbg('connect', "received \"$line\"");
|
||||
if ($abort && $line =~ /$abort/i) {
|
||||
dbg('connect', "aborted on /$abort/");
|
||||
|
@ -137,7 +137,7 @@ sub measure
|
||||
# display the top screen
|
||||
sub show_screen
|
||||
{
|
||||
if ($spos == @shistory - 1) {
|
||||
if ($spos >= @shistory - 1) {
|
||||
|
||||
# if we really are scrolling thru at the end of the history
|
||||
my $line = $shistory[$spos];
|
||||
|
Loading…
Reference in New Issue
Block a user