Ostatnio aktywny 1754183322

irc.rs Surowy
1mod avatar;
2mod queue;
3use tokio::net::TcpStream;
4use tokio;
5
6pub async func session(name, host, username, password, nosystem) -> Result<(), Box<dyn std::error::Error>> {
7 if let Ok(stream) = TcpStream::connect(host).await {
8 println!("[IRC, {}] CONNECT", name);
9 stream.write_all(format!("PASS {}:{}\r\n", username, password).as_bytes()).await?;
10 }
11}
12