CRITICAL BUG FIX: make -throttle work when output is a pipe.

This commit is contained in:
Alfred Perlstein 2005-02-23 13:00:09 +00:00
parent 80fdc110a8
commit e5e23f91af
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129594

View file

@ -0,0 +1,10 @@
--- insub.old Tue Feb 22 22:53:08 2005
+++ insub.pl Tue Feb 22 22:54:22 2005
@@ -916,6 +916,7 @@
}
+ $| = 1 if ($throttle);
foreach my $line (split(/\n/, $text)) {
if ($CONTEXT eq 'irssi') {
$cmd = "msg $sendto" unless $cmd;