Show ChanServ INFO with a readable date and friendlier text

INFO prints the founder and a UTC registration date instead of a raw
Unix timestamp (formatted with a small civil-date helper, no date crate),
and the notices are reworded to read more naturally.
This commit is contained in:
Jean Chevronnet 2026-07-12 08:52:34 +00:00
parent eb22612da8
commit c0b41c6af5
No known key found for this signature in database
2 changed files with 48 additions and 14 deletions

View file

@ -930,7 +930,7 @@ mod tests {
e.handle(NetEvent::UserConnect { uid: "000AAAAAB".into(), nick: "alice".into() });
// Not identified yet: refused.
assert!(notice(&to_cs(&mut e, "000AAAAAB", "REGISTER #room"), "must be identified"));
assert!(notice(&to_cs(&mut e, "000AAAAAB", "REGISTER #room"), "logged in"));
// Identify, then register: sets +r on the channel.
e.handle(NetEvent::Privmsg { from: "000AAAAAB".into(), to: "42SAAAAAA".into(), text: "IDENTIFY sesame".into() });