I think mIRC triggers on CONNECT when it recives "End of MOTD" for the first time. So if MOTD was not sent upon connecting and user issues the /motd command manually, mIRC treats it (the EOM reply it gets) as a first MOTD.