operlevels: oper = <name> <pass> <level>; a lower-level oper can't KILL a higher-level one

This commit is contained in:
Jean Chevronnet 2026-08-11 18:50:12 +00:00
parent 3b2f30965a
commit 3b43abc88a
7 changed files with 64 additions and 8 deletions

View file

@ -25,7 +25,7 @@ pub fn handle(s: &mut Server, method: &str, _params: &str) -> Result<String, Rpc
let opers: Vec<String> = s
.opers
.iter()
.map(|(name, _pass)| {
.map(|(name, _pass, _lvl)| {
obj(&[
("name", qstr(name)),
("type", qstr("")),