summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhm <devnull@localhost>2014-11-07 12:51:16 -0500
committerkhm <devnull@localhost>2014-11-07 12:51:16 -0500
commit39cabc72693fdc5186a1e5c745d0c307de157686 (patch)
tree98ed52ec5262d36625a0cc34de3f5551dd36a202
parent797cc13c7053dbdd16c20dc4dee5aee8c92390b0 (diff)
downloadplan9front-39cabc72693fdc5186a1e5c745d0c307de157686.tar.xz
Don't quit ircrc on blank line (thanks Ray)
-rwxr-xr-xrc/bin/ircrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/rc/bin/ircrc b/rc/bin/ircrc
index c746bb636..638565dd7 100755
--- a/rc/bin/ircrc
+++ b/rc/bin/ircrc
@@ -42,9 +42,10 @@ fn work {
target = `{echo $target | awk -F',' '{print $NF}'}
while () {
cmd=`{read}
+ s=$status
if(! ~ `{cat $netdir/status} *Established*)
exit
- if(~ $#cmd 0) {
+ if(~ $s *eof) {
echo QUIT : Leaving... > $netdir/data
exit
}