This is just something put together real fast, but can be extended upon fairly easily..
Set the channel(s) you want this to work on as shown below:
/set %noidlechans #Channel
/set %noidlechans #Channel1,#Channel2,#Channel3
Then use the following code to have it work...
Set the time you want to be allowed idle in mins here, in the '%noidle' variable.
(Which is currently set to 50)
alias noidle {
var %noidle = 50, %idle = $nick($1,$me).idle
if (%idle >= $calc(%noidle * 60)) {
echo -st Idled $1 for $duration($v1) , max idle allowed $duration($v2) ... Parting $1
part $1
}
}
on me:*:join:%noidlechans: { .timernoidle. $+ $chan 0 10 noidle $chan }
on me:*:part:%noidlechans: { if ($timer($+(noidle.,$chan))) { .timernoidle. $+ $chan off } }
This should be pretty simple to understand. Good luck and happy scripting. =)