Enabling "Include network" (and, optionally, "Make folder") in mIRC Options -> IRC -> Logging should resolve this.

I am on #mIRC on multiple networks and it works fine here.