on 1:Join:#: {
if ($timer(idlechk)) {
return
}
else {
.timeridlechk 0 20 check.idle
}
}
alias check.idle {
var %nicks = $nick($chan,0)
while (%nicks) {
if ($nick($chan,%nicks).idle > 60) {
if ($me isop $chan) {
mode $chan +v $nick($chan,%nicks)
}
}
dec %nicks
}
}
This goes in the Remotes Section yes. This code should, when someone joins the channel init the timer if not started already. The '
.timeridlechk 0 20 check.idle' part can be edited to suit your needs. The 0 must stay, the 0 signifies an infinite loop to check who is idled. The 20 part can be edited, it simply means the number of seconds until it performs the commands.
The '
if ($nick($chan,%nicks).idle > 60) {' part can be modified but only the 60 part. This simply means if someone has an idle time greater than 60 the user will be voiced by you. I added
if ($me isop $chan) { also. This simply checks if you are an op on the channel, if you are an operator you'll voice them. If not it
should do nothing. I'm not sure if it works or not again the code is still untested. But we'll be glad to help you out until it reaches perfection.
Take it easy,
Andy