Update 'src/main.rs'
This commit is contained in:
parent
cad3d12168
commit
63cbb93834
|
@ -9,7 +9,7 @@ async fn main() -> irc::error::Result<()> {
|
|||
let cfg1 = Config {
|
||||
nickname: Some("roobot".to_owned()),
|
||||
server: Some("ircd.chat".to_owned()),
|
||||
channels: vec!["#sh0rtbus".to_owned()],
|
||||
channels: vec!["#tcpdirect".to_owned()],
|
||||
port: Some(6697),
|
||||
use_tls: Some(true),
|
||||
..Default::default()
|
||||
|
@ -64,13 +64,13 @@ fn process_msg(sender: &Sender, message: Message) -> error::Result<()> {
|
|||
}
|
||||
}
|
||||
Command::Response(Response::RPL_LISTSTART, _) => {
|
||||
sender.send_privmsg("#sh0rtbus", "321 start of channel list")?;
|
||||
sender.send_privmsg("#tcpdirect", "321 start of channel list")?;
|
||||
}
|
||||
Command::Response(Response::RPL_LIST, _) => {
|
||||
sender.send_privmsg("#sh0rtbus", message)?;
|
||||
sender.send_privmsg("#tcpdirect", message)?;
|
||||
}
|
||||
Command::Response(Response::RPL_LISTEND, _) => {
|
||||
sender.send_privmsg("#sh0rtbus", "323 end of channel list")?;
|
||||
sender.send_privmsg("#tcpdirect", "323 end of channel list")?;
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue