RoCk almost had it:

Code:
on *:open:?:*:{
  window -x $nick
  scid $lactivecid window -a $qt($lactive)
  window -g1 $nick
}


I only briefly tested that but it should do what you want.