mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
24 lines
659 B
Rust
24 lines
659 B
Rust
use polariton_server::operations::{Operation, OperationCode};
|
|
|
|
pub struct EacChallengeIgnorer;
|
|
|
|
impl Operation for EacChallengeIgnorer {
|
|
type State = ();
|
|
type User = crate::UserTy;
|
|
|
|
fn handle(&self, params: polariton::operation::ParameterTable, _: &mut Self::State, _: &Self::User) -> polariton::operation::OperationResponse {
|
|
polariton::operation::OperationResponse {
|
|
code: 161, // skip the challenge (hopefully)
|
|
return_code: 0,
|
|
message: polariton::operation::Typed::Null,
|
|
params,
|
|
}
|
|
}
|
|
}
|
|
|
|
impl OperationCode for EacChallengeIgnorer {
|
|
fn op_code() -> u8 {
|
|
160
|
|
}
|
|
}
|