if (open == 0 && lock == 0) event_user(1)