From 51df31c80450bd3cc9e0e60596b7ccf1781cca08 Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Fri, 12 Apr 2024 10:23:14 +0200 Subject: [PATCH] Remove trailing space from RPL_NAMREPLY This is disallowed by https://modern.ircdocs.horse/#rplnamreply-353 and RFC2812; allowed by RFC1459 ambiguous grammar; and only irc2 seems to send such a trailing space. --- sable_ircd/src/utils/channel_names.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sable_ircd/src/utils/channel_names.rs b/sable_ircd/src/utils/channel_names.rs index f4df687f..a5ec747a 100644 --- a/sable_ircd/src/utils/channel_names.rs +++ b/sable_ircd/src/utils/channel_names.rs @@ -51,6 +51,7 @@ pub fn send_channel_names( } current_line.write_fmt(format_args!("{}{} ", p, n))?; } + current_line.pop(); // Remove trailing space lines.push(current_line); for line in lines {