a23d4b3da9
Exclude some tests with dependencies. Remove -T from perl line in plugins This makes it harder to test with PERL5LIB/perlbrew etc
18 lines
458 B
Perl
18 lines
458 B
Perl
#!perl -w
|
|
|
|
sub hook_quit {
|
|
my $qp = shift->qp;
|
|
|
|
# if she talks EHLO she is probably too sophisticated to enjoy the
|
|
# fun, so skip it.
|
|
return (DECLINED) if ($qp->connection->hello || '') eq "ehlo";
|
|
|
|
my $fortune = '/usr/games/fortune';
|
|
return DECLINED unless -e $fortune;
|
|
|
|
my @fortune = `$fortune -s`;
|
|
@fortune = map { chop; s/^/ \/ /; $_ } @fortune;
|
|
$qp->respond(221, $qp->config('me') . " closing connection.", @fortune);
|
|
return DONE;
|
|
}
|