However by double-clicking I'd like to also go directly to the line in $chan that triggered the on TEXT event
Would some code from "jaytea's Highlight Thing" work? I can single click and go directly to the channel window/line of the highlight.
http://hawkee.com/snippet/8471/Lines 127 - 135 might interest you.