Don't let through long nicknames
This commit is contained in:
parent
19324c6247
commit
16ccb84d3b
@ -493,7 +493,7 @@ sealed class StarboundServer(val root: File) : BlockableEventLoop("Server thread
|
||||
synchronized(occupiedNicknames) {
|
||||
var name = name
|
||||
|
||||
if (name.lowercase() == "server" || name.isBlank()) {
|
||||
if (name.lowercase() == "server" || name.isBlank() || name.length >= 32) {
|
||||
name = alternative
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user