mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 19:52:34 +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) {
|
if ($match) {
|
||||||
my $id = sprintf "%03d", $match;
|
my $id = sprintf "%03d", $match;
|
||||||
my $output = "https://mywiki.wooledge.org/BashFAQ/$id -- $faq{$match}";
|
|
||||||
print "$rcpt: " if $rcpt;
|
print "$rcpt: " if $rcpt;
|
||||||
print "$output\n";
|
print "https://mywiki.wooledge.org/BashFAQ/$id -- $faq{$match}\n";
|
||||||
} else {
|
} else {
|
||||||
print "No matches found at https://mywiki.wooledge.org/BashFAQ\n";
|
print "No matches found at https://mywiki.wooledge.org/BashFAQ\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user