Skip to content

Commit

Permalink
Accept '*' as a legal special symbol for usernames
Browse files Browse the repository at this point in the history
Special usernames as *status are used to control ZNC
  • Loading branch information
anarsoul committed Dec 18, 2023
1 parent b4dfd13 commit 8e48181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions irc/proto/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ fn space(input: &str) -> IResult<&str, ()> {
fn user(input: &str) -> IResult<&str, User> {
// <sequence of any characters except NUL, CR, LF, and SPACE> and @
let username = recognize(many1_count(none_of("\0\r\n @")));
// "-" "[", "]", "\", "`", "_", "^", "{", "|", "}"
let special = one_of("-[]\\`_^{|}");
// "-", "[", "]", "\", "`", "_", "^", "{", "|", "}", "*"
let special = one_of("-[]\\`_^{|}*");
// *( <letter> | <number> | <special> )
let nickname = recognize(many1_count(alt((
satisfy(|c| c.is_ascii_alphanumeric()),
Expand Down

0 comments on commit 8e48181

Please sign in to comment.