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:
parent
eb22612da8
commit
c0b41c6af5
2 changed files with 48 additions and 14 deletions
|
|
@ -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() });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue