If more than 3 ppl have these ips and join ... the bot sets mode +MR
I made 6 clones having the ips 63.1.43.23 and 63.1.43.24 join my channel but I can't get it to work though ! What's wrong with it ?
Code: Select all
set wingateipslist "*!*@63.1.43.23 *!*@63.1.43.24"
foreach chan [channels] {
set wingatejointimes($chan) 0
set wingatejoindone($chan) 0
set wingatejoinbmask($chan) ""
set wingatejointimer($chan) 0
}
bind join - * wingatepowerjoin
proc wingatepowerjoin {nick uhost hand chan} {
global wingatejointimes wingatejoindone wingatejoinbmask wingatejointimer
if {![botisop $chan]} { return 0 }
set wingatejoinbmask($chan) *!*[string tolower [string range $uhost [string first "@" $uhost] end]]
if {[lsearch -exact $wingateipslist [string tolower $wingatejoinbmask($chan)]] != -1} {
if {$wingatejointimes($chan) >= 3} {
if {$wingatejoindone($chan) == 0} {
putquick "MODE $chan +RM"
set wingatejoindone($chan) 1
utimer 10 { set wingatejoindone($chan) 0 }
}
} else {
set wingatejointimes($chan) [expr $wingatejointimes($chan) + 1]
foreach timr [utimers] {
if {[lindex $timr 2] == $wingatejointimer($chan)} {
killutimer $wingatejointimer($chan)
break
}
}
set wingatejointimer($chan) [utimer 2 {set wingatejointimes($chan) 0}]
}
}
}