I found the way to reproduce the bug!

mIRC steals focus when you time out from an SSL server and mIRC reconnects and rejoins the channels

Steps to reproduce:
1. Fresh mIRC install
2. Set the options:
* Reconnect on disconnection
* Rejoin channel when kicked
* Rejoin channels on connect
* Keep channels open
3. Connect to a SSL server
4. Join a channel
5. Set focus on a other program
6. Get mIRC time out somehow
7. Watch and obey me!

Praise me!