Hello
This is yet another code i use to scan clones & Ircops in a channel.
#clone on
on *:JOIN:#: {
var %t = $ialchan($wildsite,#,0)
if (%t == 1) return
var %i = 0
while (%i < %t) {
inc %i
var %names = $addtok(%names,$ialchan($wildsite,#,%i).nick,32)
}
echo # 4·CLONES·16 detected from4 $wildsite $+ 16 : %names 14[16[4 %i 16]14] }
on *:JOIN:#: echo -a $colour(join) *** There are $ialchan($wildsite,#,0) users who come from $wildsite
#clone end
on *:text:$($+(*,$me,*)):#:{ if (# != $active) echo -a 4,1»»» 15 $nick 9Just 10Said 11(15 $+ $1- $+ 11)15 On 4 $+ # $+ | halt }
;IRCop detector by Aha2Y
on *:text:!ircops:#:{
if ($2 == $null) {
set %ircop.checker 1
who $chan
set %ircop.send $nick
}
}
raw 352:*:{
if (%ircop.checker == 1) {
if (* isin $7) { set %ircop.nick $addtok(%ircop.nick,$6,32) | inc %ircop.count | echo IRCop }
}
}
raw 315:*:{
if (%ircop.checker == 1) {
if (%ircop.count != $null) {
notice %ircop.send [Detector] There $iif(%ircop.count == 1,is,are) %ircop.count IRC $iif(%ircop.count == 1,operator,operators) detected.
notice %ircop.send [Detector] %ircop.nick
unset %ircop.*
}
else {
set %ircop.count 0
notice %ircop.send [Detector] Your channel is IRCop free!.
unset %ircop.*
}
}
}
It also has a small code which highlights your nick when someone calls it.
Thanks

