Sending an error for TS3 clients even though they didn't send a return code
This commit is contained in:
parent
7753c95906
commit
19b7a9702a
@ -931,7 +931,7 @@ bool ConnectedClient::handleCommandFull(Command& cmd, bool disconnectOnFail) {
|
||||
}
|
||||
|
||||
bool generateReturnStatus = false;
|
||||
if(result.has_error() || this->getType() == ClientType::CLIENT_QUERY){
|
||||
if(result.has_error() || this->getType() == ClientType::CLIENT_QUERY || this->getType() == ClientType::CLIENT_TEAMSPEAK){
|
||||
generateReturnStatus = true;
|
||||
} else if(cmd["return_code"].size() > 0) {
|
||||
generateReturnStatus = !cmd["return_code"].string().empty();
|
||||
|
2
shared
2
shared
@ -1 +1 @@
|
||||
Subproject commit 6ad9f7d3f08e47c6efc29439d7cdb0bf6b570843
|
||||
Subproject commit c7985c4dd1fc96222cb8e4b170d07dd023d04c74
|
Loading…
Reference in New Issue
Block a user