diff options
| author | khm <devnull@localhost> | 2014-11-07 12:51:16 -0500 |
|---|---|---|
| committer | khm <devnull@localhost> | 2014-11-07 12:51:16 -0500 |
| commit | 39cabc72693fdc5186a1e5c745d0c307de157686 (patch) | |
| tree | 98ed52ec5262d36625a0cc34de3f5551dd36a202 /rc/bin | |
| parent | 797cc13c7053dbdd16c20dc4dee5aee8c92390b0 (diff) | |
| download | plan9front-39cabc72693fdc5186a1e5c745d0c307de157686.tar.xz | |
Don't quit ircrc on blank line (thanks Ray)
Diffstat (limited to 'rc/bin')
| -rwxr-xr-x | rc/bin/ircrc | 3 |
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 } |
