forked from lavina/lavina
1
0
Fork 0
This commit is contained in:
Nikita Vilunov 2023-11-06 22:04:10 +01:00
parent 7cb541f02e
commit f85c3bb6ce
1 changed files with 0 additions and 15 deletions

View File

@ -191,8 +191,6 @@ async fn handle_registration<'a>(
username, username,
realname, realname,
}; };
dbg!(&enabled_capabilities);
dbg!(&validated_user);
if enabled_capabilities.contains(Capabilities::Sasl) if enabled_capabilities.contains(Capabilities::Sasl)
&& validated_user.as_ref() == Some(&candidate_user.nickname) && validated_user.as_ref() == Some(&candidate_user.nickname)
{ {
@ -334,19 +332,6 @@ async fn handle_registered_socket<'a>(
let player_id = PlayerId::from(user.nickname.clone())?; let player_id = PlayerId::from(user.nickname.clone())?;
let mut connection = players.connect_to_player(player_id.clone()).await; let mut connection = players.connect_to_player(player_id.clone()).await;
// ServerMessage {
// tags: vec![],
// sender: Some(config.server_name.clone().into()),
// body: ServerMessageBody::Notice {
// first_target: "*".into(),
// rest_targets: vec![],
// text: "Welcome to my server!".into(),
// },
// }
// .write_async(writer)
// .await?;
// writer.flush().await?;
ServerMessage { ServerMessage {
tags: vec![], tags: vec![],
sender: Some(config.server_name.clone()), sender: Some(config.server_name.clone()),