forked from lavina/lavina
fix
This commit is contained in:
parent
7cb541f02e
commit
f85c3bb6ce
|
@ -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()),
|
||||||
|
|
Loading…
Reference in New Issue