Sending an error for TS3 clients even though they didn't send a return code
This commit is contained in:
@@ -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();
|
||||
|
||||
+1
-1
Submodule shared updated: 6ad9f7d3f0...c7985c4dd1
Reference in New Issue
Block a user