How I was able to reproduce the bug:

Running dante server on my VPS I configured a proxy to a shell that gets auth'd against PAM. Connecting to that proxy without inputting a password end resulted in mIRC not echo'ing a disconnect message.