1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

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

View File

@ -153,7 +153,7 @@ eval {
$in_irssi = $@ ? 0 : 1; $in_irssi = $@ ? 0 : 1;
if (!in_irssi()) { 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 { } else {
bootstrap Irssi $VERSION if (!$static); bootstrap Irssi $VERSION if (!$static);