added g_needpass to commands !!close and !!open