reworked the voice client connection part 1

This commit is contained in:
WolverinDEV
2020-07-29 19:05:38 +02:00
parent ad51f8118d
commit 4c91a7a3bf
23 changed files with 1162 additions and 759 deletions
+3 -1
View File
@@ -272,7 +272,9 @@ command_result ConnectedClient::handleCommand(Command &cmd) {
else if (command == "listfeaturesupport") return this->handleCommandListFeatureSupport(cmd);
if (this->getType() == ClientType::CLIENT_QUERY) return command_result{error::command_not_found}; //Dont log query invalid commands
if (this->getType() == ClientType::CLIENT_QUERY)
return command_result{error::command_not_found}; //Dont log query invalid commands
if (this->getType() == ClientType::CLIENT_TEAMSPEAK)
if (command.empty() || command.find_first_not_of(' ') == -1) {
if (!permission::v2::permission_granted(1, this->calculate_permission(permission::b_client_allow_invalid_packet, this->getChannelId())))