idk
This commit is contained in:
Binary file not shown.
+2
-8
@@ -377,17 +377,11 @@ async fn handle_socket
|
|||||||
};
|
};
|
||||||
let name: Arc<str> = match name.expect("failed to recv socket msg")
|
let name: Arc<str> = match name.expect("failed to recv socket msg")
|
||||||
{
|
{
|
||||||
Message::Text(text) =>
|
Message::Text(text)
|
||||||
{
|
if validate_name(&text.to_string()) =>
|
||||||
if validate_name(&text)
|
|
||||||
{
|
{
|
||||||
Arc::from(text.to_string().into_boxed_str())
|
Arc::from(text.to_string().into_boxed_str())
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
Arc::from("anon")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_ => Arc::from("anon"),
|
_ => Arc::from("anon"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user