4 times in ten seconds is not a flood detect. As others have said that will trigger constantly.

Code:
if (%flood. [ $+ [ $nick ] ] >= 5) { return }
inc -u3 %flood. [ $+ [ $nick ] ]


This is closer to a flood detect.