Code: Select all
if {[regexp {\xa4} [encoding convertfrom utf-8 $rname]] == 1 || [string length $rname] > 45} {..}
TCL_no_TK wrote:Code: Select all
set rname [format {%c} 164] set test [scan $rname %c] if {$test == 164} { puts "It Worked!" }
Code: Select all
set rname [format {%c} 164]
how to use it?TCL_no_TK wrote:Code: Select all
format {%c} "164"
Code: Select all
if {[string match "*[format {%c} "164"]*" $rname] || [string length $rname] > 45} { .... }
Code: Select all
bind part - * ban:flyby
proc ban:flyby {nick uhost hand chan arg} {
if {[getchanjoin $nick $chan] >= [expr {[clock seconds]-180}]} {
putquick "MODE $chan +b *!*@[lindex [split $uhost @] 1]"
}
}