rust/hedgewars-server/src/handlers/checker.rs
author unc0rr
Wed, 14 Jul 2021 23:50:44 +0200
changeset 15837 a803bfa3f56c
parent 15826 747278149393
child 15853 7d0f747afcb8
permissions -rw-r--r--
Add janitor plugin that would suggest mingpt plugin to reply to newcomers messages
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15141
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15096
diff changeset
     1
use log::*;
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15096
diff changeset
     2
use mio;
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15096
diff changeset
     3
15826
747278149393 Extract network protocol into a separate crate
unc0rr
parents: 15141
diff changeset
     4
use crate::core::{server::HwServer, types::ClientId};
747278149393 Extract network protocol into a separate crate
unc0rr
parents: 15141
diff changeset
     5
use hedgewars_network_protocol::messages::HwProtocolMessage;
15141
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15096
diff changeset
     6
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15096
diff changeset
     7
pub fn handle(_server: &mut HwServer, _client_id: ClientId, message: HwProtocolMessage) {
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15096
diff changeset
     8
    match message {
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15096
diff changeset
     9
        _ => warn!("Unknown command"),
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15096
diff changeset
    10
    }
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15096
diff changeset
    11
}