mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-08-21 16:54:26 -05:00
fix: mistake
This commit is contained in:
@@ -18,7 +18,7 @@ const val WACCA_USERNAME_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
|
||||
fun usernameCheck(isWacca: Bool): (IUserData, String) -> Unit = { u, v ->
|
||||
if (v.isBlank()) { 400 - "Username cannot be blank" }
|
||||
if (v.length > 8) { 400 - "Username too long" }
|
||||
u.userName = toFullWidth(v)
|
||||
u.userName = if (!isWacca) toFullWidth(v) else v
|
||||
// v.find { it !in chars }?.let { 400 - "Invalid character '$it' in username" }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user