projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Filtering, RBN changes
[spider.git]
/
cmd
/
bye.pl
diff --git
a/cmd/bye.pl
b/cmd/bye.pl
index 513b3055af6fa4bca41f5b1d8bddef23de27f874..be2ba79ccba10390bde6f310b85283cd5993d773 100644
(file)
--- a/
cmd/bye.pl
+++ b/
cmd/bye.pl
@@
-4,19
+4,16
@@
#
#
#
#
+
my $self = shift;
my $self = shift;
-return (1, $self->msg('e5')) if $self->inscript;
+return (1, $self->msg('e5')) if $self->inscript
|| $self->remotecmd
;
-# log out text
-if ($self->is_user && -e localdata("logout")) {
- open(I, localdata("logout")) or confess;
- my @in = <I>;
- close(I);
- $self->send_now('D', @in);
- sleep(1);
-}
+my $fn = localdata("logout");
+#dbg("fn: $fn " . (-e $fn ? 'exists' : 'missing'));
-#$self->send_now('Z', "");
+if ($self->is_user && -e $fn) {
+ $self->send_file($fn);
+}
$self->disconnect;
$self->disconnect;