From 787dbe9d57b3623ab3468b67247434e32668710d Mon Sep 17 00:00:00 2001 From: tali Date: Wed, 31 Jan 2024 19:04:22 -0500 Subject: [PATCH] make NOTICE capable of sending to multiple targets --- lib/server/connection.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server/connection.ml b/lib/server/connection.ml index 7769e0a..a348400 100644 --- a/lib/server/connection.ml +++ b/lib/server/connection.ml @@ -963,7 +963,7 @@ let split_command_params cmd params = String.split_on_char ',' tgts |> List.map (fun tgt -> "JOIN", tgt :: rest) - | ("PRIVMSG" | "NAMES" | "PART"), tgts :: rest + | ("PRIVMSG" | "NOTICE" | "NAMES" | "PART"), tgts :: rest when String.contains tgts ',' -> (* TODO: "JOIN" should be handled specially *) String.split_on_char ',' tgts |>