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:
Jean Chevronnet 2026-08-15 11:51:18 +00:00
parent f921c2eb9c
commit 1c8799d785
5 changed files with 415 additions and 116 deletions

View file

@ -525,7 +525,7 @@ impl Command for Kick {
&format!(":{prefix} KICK {chan} {victim} :{reason}"),
None,
);
s.propagate_from_user(uid, &format!("KICK {chan} {victim} :{reason}")); // tell links
s.propagate_kick(uid, chan, victim, &reason); // tell links
if let Some(ch) = s.channels.get_mut(&key) {
ch.members.remove(&tuid);
if ch.modes.kicknorejoin.is_some() {
@ -606,7 +606,7 @@ impl Command for TopicCmd {
});
}
s.to_channel(&key, &format!(":{prefix} TOPIC {target} :{text}"), None);
s.propagate_from_user(uid, &format!("TOPIC {target} :{text}")); // tell links
s.propagate_topic(uid, target, &text); // tell links
CmdResult::Ok
}
}