rust/chat_sanitizer/src/flood.rs
author unC0Rr
Thu, 25 Jul 2019 14:23:25 +0200
changeset 15269 7515ae6010bb
parent 14508 831ecafd74c6
permissions -rw-r--r--
Rethink message types a bit

use crate::{MessageChecker, Severity};

struct FloodChecker {}

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