Clone detector
on *:Join:#: {
var %host_to_search_for = $address($nick,2)
var %number_from_that_host = $ialchan(%host_to_search_for,$chan,0)
if (%number_from_that_host > 1) {
;we have clones!
;first set up our vars and loop
var %count = 0
unset %clones
:loop
inc %count
;loop through every nick, adding the nicks to %clones
var %clones = %clones $ialchan(%host_to_search_for,$chan,%count).nick
if (%count < %number_from_that_host) { goto loop }
echo -t $chan 5(Clones Detected) 0 %count 7Clones From 5 $address($nick,2)
echo -t $chan 5(Clones Nicks) 12 %clones
}
}
Comments 0