hi, can someone help me to fix this script, when user will join a channel with a bad ident.....i tried my best but no luck... i will appreciate for ur help
thanks
set badidents {
"badident1"
"badident2"
"badident3"
}
bind join - * bad_ident
proc bad_ident {nick uhost hand chan } {
global badidents botnick
if {(![matchattr $hand b]) && ($nick != $botnick)} {
foreach badchange [string tolower $badnicks] {
if {[string match *$badchange* [string tolower $chan]]} {
set reason "bad ident...."
set ident [string range $uhost [expr [string first "!" $uhost]+1] [expr [string last "@" $uhost]-1]]
set banmask "*$ident@*"
putserv "MODE $chan +b $banmask"
putserv "KICK $chan $nick :$reason"
return 0
}
}
}
}