This is not a bug, but, imo, expected behaviour.
It is possible to set up an alias called network. and call it as an identifier (see /help $isid)
In the code I provided $network exists but $network. does not
(ie: there is no trailing period with the $network identifier anywhere in the code I provided).
If you alter a working code and it stops working, then the problem is with the alteration of the code, not with mIRC.