Join Spam Detection
Posted by HellRaz0r
Friday, July 20, 2007
Description: Detects 3 clients joining within 2 secs.
; Turn on mirc flood protection for this script ;alt+o>irc>flood>enable>queue>opcmds+ownmsgs
on !*:join:#Channel:{
var %clients = 3, %secs = 2, %mode-delay = $duration(5mins), %ban-delay = $duration(1hour)
hinc -mu $+ %secs Detect-Spam $chan
if ($hget(Detect-Spam,$chan) >= %clients) {
if (!$hget(Detected-Spam,$chan)) {
mode $chan +mi
.timerOpen- $+ $chan 1 %mode-delay mode $chan -mi
hinc -mu $+ %secs Detected-Spam $chan
}
kick $chan $nick
}
}