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")
|
||||
{
|
||||
Message::Text(text) =>
|
||||
{
|
||||
if validate_name(&text)
|
||||
Message::Text(text)
|
||||
if validate_name(&text.to_string()) =>
|
||||
{
|
||||
Arc::from(text.to_string().into_boxed_str())
|
||||
}
|
||||
else
|
||||
{
|
||||
Arc::from("anon")
|
||||
}
|
||||
}
|
||||
_ => Arc::from("anon"),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user