Simply call the window from an alias.
alias emsg {
if (!$window(@window)) { window -l +lC @window }
set -u1 %msg $1-
aline @window $timestamp $+(<,$nick,>) %msg
}
On *:Text:*:*: {
set -u1 %msg $1-
emsg
}
In every on Text event all you'd need to add is:
set -u1 %msg $1-
emsg
I hope I understood sufficiently.
-Andy.