I am wanting a script that will ban a user that comes into my channel and only stays in less then 1 minute.
does anyone know have a script like that??
On !*:Join:[color:red]#Channel:{
hadd -m revolve $+($chan,.,$nick) $ctime
}
On @!*:Part:[color:red]#Channel:{
if (($hget(revolve,$+($chan,.,$nick))) && ($calc($ctime - $hget(revolve,$+($chan,.,$nick))) < 10)) {
ban $chan $nick 2
}
hdel revolve $+($chan,.,$nick)
}
Works on basis of nickname, wont work if they join, change nick, part.
Eamonn.
instead of using $nick, you could use $wildsite or $address($nick,2) (both of which do the same thing) and check the same thing when they leave. this will ignore the fact someone has changed their nick and parted...
Just simplifying things a little.
- on !*:join:#channel:hinc -mu60 $+(revolve,#) $site $ctime
on @*:part:#channel:if $hget($+(revolve,#),$site) { ban -u60 # $site }
Looks nice, but why a hash table per channel? I'd use something like this then.
on !*:join:#channel:hinc -mu60 revolve $+(#,\,$site) $ctime
on @*:part:#channel:if $hget(revolve, $+(#,\,$site)) { ban -u3600 # $site }