Add support for alternative ping syntax

This commit is contained in:
Yash Karandikar 2022-01-06 13:32:17 -06:00
parent be5200daac
commit c59847007b

View file

@ -195,7 +195,7 @@ async fn irc_loop(
let mut id_cache: HashMap<String, Option<u64>> = HashMap::new();
lazy_static! {
static ref PING_NICK_1: Regex = Regex::new(r"^[\w+]+:").unwrap();
static ref PING_NICK_1: Regex = Regex::new(r"^[\w+]+(:|,)").unwrap();
}
client.identify()?;