Yes I know that's a silly way, but this isn't a typical ban on version deal. Basically we only have two people who connect from the same isp and same state, one of them uses mibbit so it is easy to pick them apart.
Code: Select all
bind ctcr - VERSION version:reply
bind join - * check:version
proc check:version {nick host hand chan} {
global cversion
set cversion([string tolower $nick]) 1
if {[string match -nocase "*@*.state.isp.net" $host]} {
putserv "privmsg $nick :\001VERSION\001"
}
}
proc version:reply {nick host hand chan dest kw arg} {
global cversion
if {[isbotnick $dest] && [info exists cversion([string tolower $nick])] && [onchan $nick $chan]} {
if {[string match -nocase "*their version reply*" $arg]} {
putserv "KICK $chan $nick :lol"
unset cversion([string tolower $nick])
}
}
}
All I need it to do is kick the user if the version reply matches the version reply of the user I want kicked. I'll add the ban syntax in myself, and like I said I got it to only version someone from a specific isp in a specific state, it's just the outcome if version matches the bad one.