It's surely not hard...

Code:
if (<code for $scon(0)> > 1) {
  // Display close menu.
}


Everything that needs to be done is already in mIRC somewhere, it would take minutes at the most to add this feature.