mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-06-24 02:42:57 +03:00
Feat: add snowdrop user agent
This commit is contained in:
parent
4f190af7fc
commit
ae3770dcdf
@ -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
|
||||
|
@ -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<Context>, message: &str) -> Result<(), Box<dyn E
|
||||
|
||||
pub fn sanitize_message(message: String) -> Option<String> {
|
||||
let message = sanitize_text(&message);
|
||||
|
||||
let message = message.trim().to_string();
|
||||
|
||||
Some(message)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user