You could try a /saveini instead of restarting mIRC.