From 8e48181bb32c2ebbc6519855205f78fdf860e8e9 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Mon, 18 Dec 2023 14:32:53 -0800 Subject: [PATCH] Accept '*' as a legal special symbol for usernames Special usernames as *status are used to control ZNC --- irc/proto/src/parse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irc/proto/src/parse.rs b/irc/proto/src/parse.rs index 62c0b389e..a2de75e2a 100644 --- a/irc/proto/src/parse.rs +++ b/irc/proto/src/parse.rs @@ -126,8 +126,8 @@ fn space(input: &str) -> IResult<&str, ()> { fn user(input: &str) -> IResult<&str, User> { // and @ let username = recognize(many1_count(none_of("\0\r\n @"))); - // "-" "[", "]", "\", "`", "_", "^", "{", "|", "}" - let special = one_of("-[]\\`_^{|}"); + // "-", "[", "]", "\", "`", "_", "^", "{", "|", "}", "*" + let special = one_of("-[]\\`_^{|}*"); // *( | | ) let nickname = recognize(many1_count(alt(( satisfy(|c| c.is_ascii_alphanumeric()),