--- a/rust/hedgewars-network-protocol/src/parser.rs Mon Feb 17 16:38:24 2025 +0100
+++ b/rust/hedgewars-network-protocol/src/parser.rs Sat Feb 22 19:39:31 2025 +0300
@@ -220,7 +220,6 @@
}
alt((
- message("NICK\n", a_line, Nick),
message("INFO\n", a_line, Info),
message("CHAT\n", a_line, Chat),
message("PART", opt_arg, Part),
@@ -496,6 +495,10 @@
),
|values| CheckedOk(values.unwrap_or_default()),
),
+ preceded(
+ tag("NICK\n"),
+ map(pair(a_line, opt_arg), |(nick, token)| Nick(nick, token)),
+ ),
))(input)
}