1
0
Fork 0

Print perl import warning to STDERR

Printing to STDOUT can interfere with programs which intend to produce
machine-readable output and yet for whatever reason import Irssi.pm from
outside of irssi.

Closes https://github.com/irssi/irssi/issues/1465
This commit is contained in:
Score_Under 2023-04-15 00:39:38 +01:00
parent a8a2460531
commit c5df1c01cc
No known key found for this signature in database
GPG Key ID: A99742B6A92A14E8
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ eval {
$in_irssi = $@ ? 0 : 1;
if (!in_irssi()) {
print "Warning: This script should be run inside irssi\n";
print STDERR "Warning: This script should be run inside irssi\n";
} else {
bootstrap Irssi $VERSION if (!$static);