Code: Select all
proc stricthost {host chan} {
set strict 0
if {[string index $host 0] == "!"} {
set host [string range $host 1 end]
set strict 1
}
if {![string match "*@*" $host]} {
set addhost "$host[getchanhost $host $chan]"
if {$strict == 0} {
set addhost [maskhost "*$addhost"]
} else {
if {[string index $addhost 0] == "~"} {set addhost "*[string range $addhost 1 end]"}
set addhost "*$addhost"
}
set host $addhost
}
return $host
}
proc Ban { nick host hand chan text } {
set Who [lindex [split $text] 0]
set Why [lrange $text 2 100]
set thehost [stricthost $Who $chan]
putquick "MODE $chan +b $thehost"
putquick "KICK $chan $Who $Why"
}
The REAL host is: *!*t0xs7s@*.east.verizon.net
And, what the bot is banning is: *!*st0xs7s@*.east.verizon.net[/code]