try do somthing with $scon(0) .. that show you how many cobnnections you have to irc "true same mirc" .. then make it echo to $scon 2 if thats the one you want to echo too..
//echo $scon(1) stuff
//echo $scon(2) stuff
im shure its a easyer way to solve it.. but to tired to think now
and look in the help file, im shure you fins som usefull stuff in there