This issue has been addressed in the new mIRC 6.16
(2. Fixed $did().next/prev bug.)