3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

modules/bashfaq.pl: factor out unnecessary $output

This commit is contained in:
Pragmatic Software 2021-05-23 17:09:13 -07:00
parent 7134010f98
commit c820bd5359

3
modules/bashfaq.pl vendored
View File

@ -38,9 +38,8 @@ if (exists $faq{$query}) {
if ($match) {
my $id = sprintf "%03d", $match;
my $output = "https://mywiki.wooledge.org/BashFAQ/$id -- $faq{$match}";
print "$rcpt: " if $rcpt;
print "$output\n";
print "https://mywiki.wooledge.org/BashFAQ/$id -- $faq{$match}\n";
} else {
print "No matches found at https://mywiki.wooledge.org/BashFAQ\n";
}