Evaluated proc said args {set rpattern [join ${args}]; set logs [raw_irclog]; set matches [list]; foreach line $logs { if {regexp "a" [lindex $line 3]} {, $matches $line}}; . $matches}