CBAN (forbid channel-name globs) + SSLINFO command
This commit is contained in:
parent
cab53016e8
commit
4a53c80d4d
5 changed files with 91 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ pub fn commands() -> Vec<Box<dyn Command>> {
|
|||
Box::new(Eline),
|
||||
Box::new(Shun),
|
||||
Box::new(Qline),
|
||||
Box::new(Cban),
|
||||
Box::new(Connect),
|
||||
Box::new(ChgHost),
|
||||
Box::new(ChgIdent),
|
||||
|
|
@ -683,6 +684,21 @@ impl Command for Qline {
|
|||
}
|
||||
}
|
||||
|
||||
/// CBAN — forbid a channel-name glob (opers bypass it). Mask alone removes; a
|
||||
/// mask + duration adds. InspIRCd `m_cban`.
|
||||
struct Cban;
|
||||
impl Command for Cban {
|
||||
fn name(&self) -> &'static str {
|
||||
"CBAN"
|
||||
}
|
||||
fn min_params(&self) -> usize {
|
||||
1
|
||||
}
|
||||
fn handle(&self, s: &mut Server, uid: Uid, params: &[String]) -> CmdResult {
|
||||
do_xline(s, uid, params, XKind::Cban)
|
||||
}
|
||||
}
|
||||
|
||||
/// CONNECT — dial a configured server link on demand. `CONNECT <servername>`.
|
||||
struct Connect;
|
||||
impl Command for Connect {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue