How would I go about adding in multiple hosts? Just add a separate line for each one, or is there a more efficient way of doing this?Sir_Fz wrote:Unfortunately there's no exempts-list for clones protection. You can, however, add the following check in the "clones"-clause of procedure joins which would look like this:Code: Select all
... "clones" { variable eclones if {![string is integer $off] || $off <= 0} {return 0} # Add this line (make sure you modify it with your host) if {[string match -nocase *@yourhost.net $uhost]} {continue} set c 0 foreach ccheck [chanlist $chan] { ...
Code: Select all
...
"clones" {
variable eclones
if {![string is integer $off] || $off <= 0} {return 0}
# Add these lines (make sure you modify it with all your exempt hosts)
set exemptstop 0
foreach exempthost {*@yourhost.net *@anotherhost.net *@anotherhost2.net
*@anotherhost3.net *@anotherhost4.net *@anotherhost5.net} {
if {[string match -nocase $exempthost $uhost]} {
set exemptstop 1 ; break
}
}
if {$exemptstop=="1"} {continue}
# continue may need to be return 0 ,i'm not sure #
set c 0
foreach ccheck [chanlist $chan] {
...
Code: Select all
foreach ccheck [chanlist $chan] {
Code: Select all
if {[matchattr [nick2hand $ccheck] +fv $chan]} continue
Code: Select all
if {[string equal -nocase [nick2hand $ccheck] "exempt"]} continue