link: rework s2s wire format to the standard v4 server protocol (10-field uid, letters-comma fjoin, ijoin, timestamped fmode, ftopic, uuid kick) so external services link
This commit is contained in:
parent
f921c2eb9c
commit
1c8799d785
5 changed files with 415 additions and 116 deletions
|
|
@ -167,8 +167,9 @@ pub fn apply_mode(s: &mut Server, uid: Uid, params: &[String]) -> CmdResult {
|
|||
None,
|
||||
);
|
||||
}
|
||||
s.propagate_from_user(uid, &format!("MODE {target} {applied}{pstr}"));
|
||||
// links
|
||||
// links: a timestamped FMODE sourced from the acting user's uuid
|
||||
let src_uuid = s.users[&uid].uuid.clone();
|
||||
s.propagate_chan_mode(&src_uuid, target, &applied, &echoed);
|
||||
}
|
||||
CmdResult::Ok
|
||||
}
|
||||
|
|
@ -229,7 +230,9 @@ pub fn svs_set_chan_modes(s: &mut Server, target: &str, modestring: &str, args:
|
|||
&format!(":{} MODE {target} {applied}{pstr}", s.name),
|
||||
None,
|
||||
);
|
||||
s.propagate(&format!(":{} MODE {target} {applied}{pstr}", s.sid), None); // links
|
||||
// links: a timestamped FMODE sourced from this server's sid
|
||||
let sid = s.sid.clone();
|
||||
s.propagate_chan_mode(&sid, target, &applied, &echoed);
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue