* Don't quit ircrc on blank line
@ 2014-11-07 14:00 ray
0 siblings, 0 replies; only message in thread
From: ray @ 2014-11-07 14:00 UTC (permalink / raw)
To: ray, 9front
diff -r 33cb4ea3b280 rc/bin/ircrc
--- a/rc/bin/ircrc Fri Nov 07 05:21:42 2014 +0100
+++ b/rc/bin/ircrc Sat Nov 08 21:29:18 2014 +0800
@@ -42,9 +42,10 @@
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
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-07 14:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-07 14:00 Don't quit ircrc on blank line ray
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).