fiddle about with 'bye'
[spider.git] / cmd / bye.pl
index 1fc73f66648a9251cb327d9c5923902adc20d308..13195c60ebb3a38820c8f9f77e0e3de841746025 100644 (file)
@@ -5,5 +5,16 @@
 #
 
 my $self = shift;
-$self->state('bye');
+
+# 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->disconnect;
+
 return (1);