Code: Select all
# second callback (catches RBL results)
proc proxycheck_check3 { ip host status nick orighost channel rbl } {
global proxycheck_bantime
if {$status} {
putlog "proxycheck: got host $host = ip $ip from RBL $rbl ... banning"
newchanban $channel "*@$orighost" "proxychk" "proxycheck: $rbl" $proxycheck_bantime
}
#if we didn't get a host, they're not in RBL
Code: Select all
# second callback (catches RBL results)
proc proxycheck_check3 { ip host status nick orighost channel rbl } {
global proxycheck_bantime
if {([$status]) && (![matchban *@$orighost])} {
putcmdlog "proxycheck: got host $host = ip $ip from RBL $rbl ... banning"
newban "*@$orighost" "proxychk" "proxycheck: $channel $rbl" $proxycheck_bantime
puthelp "PRIVMSG $nick :This is an automated response. You've been banned for $proxycheck_bantime from $channel because your host $host is listed at $rbl"
puthelp "PRIVMSG $nick :You will need to fix whatever caused you to be listed and get removed from $rbl before you're able to rejoin $channel ."
puthelp "PRIVMSG #opschan :$nick was banned from $channel for being listed in $rbl."
}
If you guys have any ideas on how to fix this I'd be very appreciative.