chanlog: post log lines as a channel PRIVMSG from the server, not a NOTICE
This commit is contained in:
parent
b8e24e2071
commit
ddb6214b47
2 changed files with 4 additions and 2 deletions
|
|
@ -1671,7 +1671,7 @@ mod tests {
|
|||
s.snotice_c('c', "CONNMSG");
|
||||
let lines: Vec<String> = std::iter::from_fn(|| rx.try_recv().ok()).collect();
|
||||
let logged = |chan: &str, needle: &str| {
|
||||
lines.iter().any(|l| l.contains(&format!("NOTICE {chan} :")) && l.contains(needle))
|
||||
lines.iter().any(|l| l.contains(&format!("PRIVMSG {chan} :")) && l.contains(needle))
|
||||
};
|
||||
assert!(logged("#xlog", "XLINEMSG"), "x-line notice goes to #xlog: {lines:?}");
|
||||
assert!(logged("#all", "XLINEMSG"), "x-line notice goes to #all: {lines:?}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue