projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix spurious Text::Wrap warning on console.pl
[spider.git]
/
cmd
/
bye.pl
diff --git
a/cmd/bye.pl
b/cmd/bye.pl
index 1fc73f66648a9251cb327d9c5923902adc20d308..be2ba79ccba10390bde6f310b85283cd5993d773 100644
(file)
--- a/
cmd/bye.pl
+++ b/
cmd/bye.pl
@@
-1,9
+1,20
@@
#
# the bye command
#
#
# the bye command
#
-# $Id$
#
#
+#
+
my $self = shift;
my $self = shift;
-$self->state('bye');
+return (1, $self->msg('e5')) if $self->inscript || $self->remotecmd;
+
+my $fn = localdata("logout");
+#dbg("fn: $fn " . (-e $fn ? 'exists' : 'missing'));
+
+if ($self->is_user && -e $fn) {
+ $self->send_file($fn);
+}
+
+$self->disconnect;
+
return (1);
return (1);