ive got an on text script that i use to change the way mIRC displays normal channel dialogue.

the problem is that i can't figure out how to determine whether a given line of text is coming from either kind of chat window, or how to direct the .msg and .echo to the chat window in question properly...

any suggestions appreciated.