i18n: localize the client-facing Closing-link ERROR wrapper via trf (fr, es); QUIT-broadcast reasons stay canonical for S2S
This commit is contained in:
parent
9b51db07f5
commit
04671733d2
12 changed files with 54 additions and 31 deletions
|
|
@ -1349,7 +1349,8 @@ impl Command for SaQuit {
|
|||
.cloned()
|
||||
.unwrap_or_else(|| "Services forced quit".to_string());
|
||||
if s.uid_servprotected(tuid) { s.numeric(uid, ERR_NOPRIVILEGES, ":Cannot use an SA command on a network service"); return CmdResult::Fail; }
|
||||
s.send(tuid, format!("ERROR :Closing link: (SAQUIT: {reason})"));
|
||||
let m = s.trf("Closing link: (SAQUIT: {0})", &[reason.as_str()]);
|
||||
s.send(tuid, format!("ERROR :{m}"));
|
||||
s.remove_user(tuid, &format!("Quit: {reason}"));
|
||||
let by = oper_nick(s, uid);
|
||||
let m = s.trf("{0} used SAQUIT on {1}: {2}", &[by.as_str(), params[0].as_str(), reason.as_str()]);
|
||||
|
|
|
|||
|
|
@ -572,7 +572,8 @@ impl Command for Nick {
|
|||
});
|
||||
if let Some((nk, id, ho, ip, rn)) = info {
|
||||
if let Some(reason) = s.matched_rline(&nk, &id, &ho, &ip, &rn) {
|
||||
s.send(uid, format!("ERROR :Closing link: ({reason})"));
|
||||
let m = s.trf("Closing link: ({0})", &[reason.as_str()]);
|
||||
s.send(uid, format!("ERROR :{m}"));
|
||||
s.remove_user(uid, &reason);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue