Author: sparky
Date: Fri Oct 30 23:06:22 2009
New Revision: 10897

Modified:
   toys/stbr/stbr.tcl
Log:
- use intermediate file


Modified: toys/stbr/stbr.tcl
==============================================================================
--- toys/stbr/stbr.tcl  (original)
+++ toys/stbr/stbr.tcl  Fri Oct 30 23:06:22 2009
@@ -38,12 +38,12 @@
 
 proc putqueue {ver} {
        global queueparser
-       set parsed [exec $queueparser $ver]
-       set lines [split $parsed "\n"]
-       foreach l $lines {
+       exec $queueparser $ver > queue.txt
+       set qfile [open queue.txt r]
+       while {[gets $qfile l] >= 0} {
                putserv "privmsg #pld :$l"
+               putlog "Thrown stats to #pld: $ver: $l"
        }
-       putlog "Thrown stats to #pld: $ver: $parsed"
 }
 
 proc pub:buildstatus {nick host hand chan arg} {
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to