adding triggers for this:
![matchattr $handle "k|k" $channel] } && ![matchattr $handle "q|q" $channel] && ![matchban $nick!$uhost $channel]
it prevents users beeing banned (by the bot) or devoiced also from getting opped

.
i have various expiriens with script freeop. i changed my policy to 60sec autoop and added various +d triggers for kicking/deopping +m users and setting +i, +k oder +l very low. i also added a clone protection addionaly to the sentinal.tcl clone join flood protection.
Code: Select all
if {[lsearch -exact [channel info $channel] +autoop] > -1} {
set userhost "*!*[string range $uhost [string first @ $uhost] e]"
set clonenb 0
foreach user [chanlist $channel] {
set clonehost [getchanhost $user $channel]
set cloneuserhost "*!*[string range $clonehost [string first @ $clonehost] e]"
set userhandle [nick2hand $user]
if {[string match [strlwr $userhost] [strlwr "$user![getchanhost $user $channel]"]] && ($userhost == $cloneuserhost) && !([matchattr $userhandle f|f $channel] || [matchattr $userhandle o|o $channel])} {
incr clonenb
}
}
if { $clonenb < 3 } {
utimer 60 [list idleopping $nick $channel]
return 1
} else {
incr clonenb -1
putserv "NOTICE $nick :Böser $clonenb. Clone Du!!!"
return 2
}
}
feel free to copy the clonecounter for other usage, its a rewritten script Thor.
note: it counts only non-op and non-friend clones (usefull if some clones are bouncers and known).