I think it would be good if windows would not steal focus unless there has been a certain amount of time since you last typed in the window. Maybe a second?
When I connect to a network and my nickname is in use it will put /nick in the editbox for my conveniance, but as I'm typing in my new nickname the channels I join on another network will steal the focus.