See:

https://forums.mirc.com/ubbthreads.php/topics/249755/Krawalli#Post249755

In this post I answered a similar question by subject anti flood.