Make sure you are using the latest version of mIRC.
When SSL was introduced to mIRC, if you attempted to send anything on sockopen, the connection would die.

The solution was to use a signal (without -n switch) to allow the sockopen event to complete before sending any data.
It was fixed in the next version


[02:16] * Titanic has quit IRC (Excess Flood)