proc readfile {min hour day month year} {
global filenews
foreach chan [channels] {
if {[channel get $chan randnews]} {
set file [open $filenews r]
set data [read $file]
close $file
set lines [split $data \n]
set randline [lindex $lines [rand [llength $lines]]]
putserv "PRIVMSG $chan :$randline"
}
}
}