mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
modules/bashfaq.pl: factor out unnecessary $output
This commit is contained in:
parent
7134010f98
commit
c820bd5359
3
modules/bashfaq.pl
vendored
3
modules/bashfaq.pl
vendored
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user