Code: Select all
set kanal "#achan"
proc ctrl:filter {str} {
regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str
return $str
}
bind RAW * 301 away:gor
proc away:gor { from key msg } {
global kanal
set msg [ctrl:filter $msg]
if {[regexp (www) $msg] || [regexp (.net) $msg] || [regexp (.com) $msg] || [regexp (http://) $msg]} {
putlog "RAW: $from | $key | $msg "
}
}
RAW: soho-r.ix.us.dal.net | 301 | helebe aquil :www.
helebe is bots name. aquil is the spammer. www. is away message.
i want to get aquil's host name with in that script. and then ban it.
im not pro on tcl
i think i m gonna use hand2nick but how and with which commands?
if someone show me the way i ll be glad.