rust/chat_sanitizer/src/flood.rs
author alfadur
Wed, 01 May 2019 21:59:41 +0300
changeset 14876 0f39f8efbd2e
parent 14508 831ecafd74c6
permissions -rw-r--r--
add visual notification on room joins

use crate::{MessageChecker, Severity};

struct FloodChecker {}

impl<T> MessageChecker<T> for FloodChecker {
    fn check(&self, player_id: T, message: &str) -> Severity {
        Severity::Pass
    }
}