Hi,

the following piece of code will ban/kick any person that joins your channel, and doesn't say anything in 10 mins after joining. If they do say something, then the script won't kick them anymore.
Code:
 
#idlekicker on
 [color:red]  [/color] 
on *@!:JOIN:#needhelp: if !$timer($nick) { $+(.timer,$nick) 1 600 KickIdler $chan $nick }
on *:TEXT:*:#needhelp: if $timer($nick) { $+(.timer,$nick) off }
alias KickIdler if ($me isop $1) && ($2 isreg $1) { ban -k $1-2 2 Idling is not allowed! }
  [color:green]  [/color] 
#idlekicker end


Of course, people could say something within 10 minutes after joining, and then not say something for ages. To go around this, I've made you an alias that you can use, which will check all the regular nicks (not voiced, oped) for their idle time on the channel, and if the idle time is higher than 600 seconds, then it will ban/kick them.
Code:
 
alias CheckIdlers {
  var %chan = #needhelp
  if ($me !isop %chan) { echo -a You are not oped on %chan | return }
  var %a = $nick(%chan,0,r)
  while (%a) { 
    if ($nick(%chan,%a,r).idle > 600) { ban -k %chan $nick(%chan,%a,r) 2 Idling is not allowed! }
    dec %a
  }
}

Usage: /CheckIdlers

Hope this was useful for you,

Greets

Last edited by FiberOPtics; 29/05/04 10:38 AM.