spider/cmd/bye.pl
minima 586cbb347e do non blocking connects
fix memory leak in connects
2001-03-13 14:22:13 +00:00

20 lines
259 B
Perl

#
# the bye command
#
# $Id$
#
my $self = shift;
# log out text
if ($self->is_user && -e "$main::data/logout") {
open(I, "$main::data/logout") or confess;
my @in = <I>;
close(I);
$self->send_now('D', @in);
sleep(1);
}
$self->state('bye');
return (1);