WIP: hellfire #1

Draft
sad wants to merge 19 commits from hellfire into main
Showing only changes of commit 06b32db707 - Show all commits

View File

@ -217,9 +217,9 @@ async fn writemsg(mut writer: tokio::io::WriteHalf<tokio_native_tls::TlsStream<T
} }
} }
if *cmd == "KICK" { if *cmd == "KICK" {
let channel = parts[2]; let channel = parts.get(2).unwrap_or(&"");
let userme = parts[3]; let userme = parts.get(3).unwrap_or(&"");
if userme == nickname { if *userme == nickname {
writer.write_all(format!("JOIN {}\r\n", channel).as_bytes()).await.unwrap(); writer.write_all(format!("JOIN {}\r\n", channel).as_bytes()).await.unwrap();
writer.flush().await.unwrap(); writer.flush().await.unwrap();
} }