From: ijackson Date: Fri, 8 Apr 2005 14:45:02 +0000 (+0000) Subject: handle eof on stdin X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=dbd2dc8827a3aac27665dc40159cfa1a20579896;p=ircbot.git handle eof on stdin --- 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 }