Remove less_explicit_mode (no longer sent from client)
This commit is contained in:
parent
68fc094c15
commit
657ec807e0
@ -44,7 +44,6 @@ mod ignore;
|
|||||||
pub mod improvise;
|
pub mod improvise;
|
||||||
mod install;
|
mod install;
|
||||||
mod inventory;
|
mod inventory;
|
||||||
mod less_explicit_mode;
|
|
||||||
mod list;
|
mod list;
|
||||||
pub mod load;
|
pub mod load;
|
||||||
mod login;
|
mod login;
|
||||||
@ -131,7 +130,6 @@ static ALWAYS_AVAILABLE_COMMANDS: UserVerbRegistry = phf_map! {
|
|||||||
static UNREGISTERED_COMMANDS: UserVerbRegistry = phf_map! {
|
static UNREGISTERED_COMMANDS: UserVerbRegistry = phf_map! {
|
||||||
"agree" => agree::VERB,
|
"agree" => agree::VERB,
|
||||||
"connect" => login::VERB,
|
"connect" => login::VERB,
|
||||||
"less_explicit_mode" => less_explicit_mode::VERB,
|
|
||||||
"login" => login::VERB,
|
"login" => login::VERB,
|
||||||
"register" => register::VERB,
|
"register" => register::VERB,
|
||||||
};
|
};
|
||||||
@ -552,6 +550,6 @@ mod test {
|
|||||||
session_dat: &mut session_dat,
|
session_dat: &mut session_dat,
|
||||||
user_dat: &mut user_dat,
|
user_dat: &mut user_dat,
|
||||||
};
|
};
|
||||||
assert_eq!(resolve_handler(&ctx, "less_explicit_mode").is_some(), true);
|
assert_eq!(resolve_handler(&ctx, "agree").is_some(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
use super::{UResult, UserVerb, UserVerbRef, VerbContext};
|
|
||||||
use async_trait::async_trait;
|
|
||||||
|
|
||||||
pub struct Verb;
|
|
||||||
#[async_trait]
|
|
||||||
impl UserVerb for Verb {
|
|
||||||
async fn handle(
|
|
||||||
self: &Self,
|
|
||||||
_ctx: &mut VerbContext,
|
|
||||||
_verb: &str,
|
|
||||||
_remaining: &str,
|
|
||||||
) -> UResult<()> {
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
static VERB_INT: Verb = Verb;
|
|
||||||
pub static VERB: UserVerbRef = &VERB_INT as UserVerbRef;
|
|
Loading…
Reference in New Issue
Block a user