Using one global event loop for the query and web client
This commit is contained in:
@@ -119,7 +119,8 @@ command_result SpeakingClient::applyClientInitParameters(Command &cmd) {
|
||||
this->properties()[property::CLIENT_NICKNAME_PHONETIC] = name;
|
||||
} else if(key == "client_version" || key == "client_platform") {
|
||||
auto value = cmd[key].string();
|
||||
if(value.length() > 64) {
|
||||
if(value.length() > 512) {
|
||||
/* The web client uses the full browser string which might be a bit longer */
|
||||
return command_result{error::client_hacked};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user