The Chat module has its own flood protection system. It is more complex and granular. The checks are performed when the user:
- creates a room,
- joins a room,
- posts a message,
- changes the nickname.
The checks are performed against the chat user ID. This module also has its own flood protection settings at Site Manager -> Settings -> Community -> Chat:
Flood protection integration
If you want to integrate this mechanism in your own code or module, use the FloodProtectionHelper.CheckFlooding method: