Just making a review since not much is going on here at Hawkee at the moment. I'm just demonstrating another way of looping through the awayu.sys with mIRC's file handling:
raw 315:*:{
var %y = 1
var %z = 0
while (%y <= $lines(awayu.sys)) {
if ($read(awayu.sys,%y) isop %chan) {
set %awayu $addtok(%awayu,$read(awayu.sys,%y),32)
inc %z
}
inc %y
}
mode %chan -o $+ $str(o,$numtok(%awayu,32)) %awayu
if (%z) { msg %chan These nicks are set as away or were idling for more than $duration(1800,2) }
}
can be done as:
raw 315:*:{
.fopen op awayu.sys
while (!$feof) && (!$ferr) {
if ($fread(op) isop %chan) {
set %awayu $addtok(%awayu,$v1,32)
}
}
.fclose op
mode %chan $+(-,$str(o,$numtok(%awayu,32)) %awayu)
if (%z) { msg %chan These nicks are set as away or were idling for more than $duration(1800,2) }
}