diff --git a/docs/user_agents.md b/docs/user_agents.md index a0c9910..227ffa7 100644 --- a/docs/user_agents.md +++ b/docs/user_agents.md @@ -12,6 +12,7 @@ Here are listed the most common clients, and their name colors in the chat. | [CRAB](https://gitea.bedohswe.eu.org/pixtaded/crab) | ═══<{name}> {text} | `\u2550\u2550\u2550<(.*?)> (.*)` | light red | [Mefidroniy](https://github.com/OctoBanon-Main/mefedroniy-client) | °ʘ<{name}> {text} | `\u00B0\u0298<(.*?)> (.*)` | light magenta | [cRACk](https://github.com/pansangg/cRACk) | ⁂<{name}> {text} | `\u2042<(.*?)> (.*)` | gold +| [Snowdrop](https://github.com/Forbirdden/Snowdrop) | ඞ<{name}> {text} | `\u0D9E<(.*?)> (.*)` | toxic green | clRAC | <{name}> {text} | `<(.*?)> (.*)` | cyan ## developer notes diff --git a/src/chat/mod.rs b/src/chat/mod.rs index 7566591..b161a85 100644 --- a/src/chat/mod.rs +++ b/src/chat/mod.rs @@ -42,6 +42,7 @@ lazy_static! { (Regex::new(r"\u{2550}\u{2550}\u{2550}<(.*?)> (.*)").unwrap(), "#fa7070".to_string()), // CRAB (Regex::new(r"\u{00B0}\u{0298}<(.*?)> (.*)").unwrap(), "#da70fa".to_string()), // Mefidroniy (Regex::new(r"\u{2042}<(.*?)> (.*)").unwrap(), "#f5f543".to_string()), // cRACk + (Regex::new(r"\u{0D9E}<(.*?)> (.*)").unwrap(), "#aeff00".to_string()), // Snowdrop (Regex::new(r"<(.*?)> (.*)").unwrap(), "#70fadc".to_string()), // clRAC ]; @@ -253,9 +254,7 @@ pub fn on_send_message(ctx: Arc, message: &str) -> Result<(), Box Option { let message = sanitize_text(&message); - let message = message.trim().to_string(); - Some(message) }