actually i find this quite usefull and very easy to implement. however instead of making it scriptable perhaps in the options since mIRC already has a confirm setting perhaps adding "Place in tray on close" to the confirm dialog options might be usefull.