add PSOBB Hangame functions

This commit is contained in:
Martin Michelsen
2024-03-22 22:23:41 -07:00
parent 325f7c6efc
commit 76bc2385ca
6 changed files with 121 additions and 1 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ void Client::set_license(shared_ptr<License> l) {
if (this->version() == Version::BB_V4) {
// Make sure bb_username is filename-safe
for (char ch : l->bb_username) {
if (!isalnum(ch) && (ch != '-') && (ch != '_')) {
if (!isalnum(ch) && (ch != '-') && (ch != '_') && (ch != '@')) {
throw runtime_error("invalid characters in username");
}
}