Issue #2219023 by TR, Dave Reid: Add a rule condition and action to correspond with flood_is_allowed() and flood_register_event()