mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Update persona name pattern
Add '-' character to allowed characters in persona name.
This commit is contained in:
parent
697d11cccb
commit
dda78ed36e
@ -56,7 +56,7 @@ bool IsValidPersonaName(const char* pszName)
|
||||
}
|
||||
|
||||
// Check if the name contains any special characters.
|
||||
size_t pos = strspn(pszName, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_");
|
||||
size_t pos = strspn(pszName, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
|
||||
return pszName[pos] == '\0';
|
||||
}
|
||||
#endif // !CLIENT_DLL
|
||||
|
Loading…
x
Reference in New Issue
Block a user