rust/hedgewars-server/src/handlers/checker.rs
author alfadur
Mon, 03 Jun 2019 01:15:57 +0300
changeset 15108 823052e66611
parent 15080 e935b1ad23f3
child 15125 febccab419b1
permissions -rw-r--r--
check for account existence before asking passwords
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14462
98ef2913ec73 Apply rustfmt to all files
unc0rr
parents: 14420
diff changeset
     1
use log::*;
13803
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     2
use mio;
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     3
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     4
use crate::{
15080
e935b1ad23f3 normalize type names
alfadur
parents: 15079
diff changeset
     5
    core::{server::HwServer, types::ClientId},
e935b1ad23f3 normalize type names
alfadur
parents: 15079
diff changeset
     6
    protocol::messages::HwProtocolMessage,
13803
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     7
};
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     8
15080
e935b1ad23f3 normalize type names
alfadur
parents: 15079
diff changeset
     9
pub fn handle(_server: &mut HwServer, _client_id: ClientId, message: HwProtocolMessage) {
13803
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    10
    match message {
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    11
        _ => warn!("Unknown command"),
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    12
    }
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    13
}