Code: Select all
bind pub - !parse parse:string
proc parse:string {nick uhost hand chan text} {
set string "a :: b :: c :: d ::"
set out [lrange [join [split $string ::]] 2 end]
putserv "PRIVMSG $chan :$out"
}
Code: Select all
lrange [join [split $string ::]] 2 end
Code: Select all
regsub -all -nocase {[^a-z]} $string {} cleanstring