All pastes #277205 Raw Edit

Stuff

public text v1 · immutable
·published 2006-12-13 00:28 UTC
rendered paste body
proc fillques {nick uhost hand chan text} {
 set data [split $text]
 set ::ncurrent 0
 set ::namount [lindex $data 1]
 set waittime [lindex $data 0]
 set filename [ini_read "mp3leech.ini" "mp3" "mp3leech_list"]
 set channel [ini_read "mp3leech.ini" "mp3" "mp3leech_channel"]
 set current [ini_read "mp3leech.ini" "mp3" "mp3leech_line"]
 set total [ini_read "mp3leech.ini" "mp3" "mp3leech_total"]
 set data [split [read [open $filename]] \n]
 set total [llength $data]
 every $waittime "makereq $channel \[lindex $data $current\] ; if {\[incr ::ncurrent\] == \$::namount} {return}"
}