move draft/multiline into its own module file

This commit is contained in:
Jean Chevronnet 2026-08-08 22:49:54 +00:00
parent 768435d810
commit ab7188bb70
6 changed files with 148 additions and 110 deletions

View file

@ -195,7 +195,8 @@ impl Ircd {
// not delivered on its own — it's assembled and sent when the BATCH closes.
if let Some(bref) = &msg.batch {
if matches!(cmd, "PRIVMSG" | "NOTICE") && msg.params.len() >= 2 {
let consumed = self.server.multiline_accumulate(
let consumed = crate::modules::multiline::accumulate(
&mut self.server,
uid,
bref,
cmd == "NOTICE",