Don't quit ircrc on blank line (thanks Ray)
This commit is contained in:
parent
797cc13c70
commit
39cabc7269
1 changed files with 2 additions and 1 deletions
|
@ -42,9 +42,10 @@ fn work {
|
||||||
target = `{echo $target | awk -F',' '{print $NF}'}
|
target = `{echo $target | awk -F',' '{print $NF}'}
|
||||||
while () {
|
while () {
|
||||||
cmd=`{read}
|
cmd=`{read}
|
||||||
|
s=$status
|
||||||
if(! ~ `{cat $netdir/status} *Established*)
|
if(! ~ `{cat $netdir/status} *Established*)
|
||||||
exit
|
exit
|
||||||
if(~ $#cmd 0) {
|
if(~ $s *eof) {
|
||||||
echo QUIT : Leaving... > $netdir/data
|
echo QUIT : Leaving... > $netdir/data
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue