From dbd2dc8827a3aac27665dc40159cfa1a20579896 Mon Sep 17 00:00:00 2001 From: ijackson Date: Fri, 8 Apr 2005 14:45:02 +0000 Subject: [PATCH] handle eof on stdin --- spoutchan.tcl | 1 + 1 file changed, 1 insertion(+) diff --git a/spoutchan.tcl b/spoutchan.tcl index cb601ab..b350563 100755 --- a/spoutchan.tcl +++ b/spoutchan.tcl @@ -19,6 +19,7 @@ proc msg_366 {args} { } proc stdinread {} { global channel + if {[eof stdin]} { exit 0 } if {[gets stdin l] < 0} return sendprivmsg $channel $l } -- 2.30.2