Strip admin prefixes before computing nicks

This commit is contained in:
Yash Karandikar 2022-07-21 14:32:35 -05:00
parent ba0772cb50
commit 02af2c7847

View file

@ -61,6 +61,7 @@ async fn main() -> anyhow::Result<()> {
continue;
}
let nick = unwrap_or_continue!(message.source_nickname());
let nick = nick.strip_prefix(['~', '&', '@', '%', '+']).unwrap_or(nick);
match message.command {
Command::JOIN(ref channel, _, _) => {