diff --git a/server/src/client/ConnectedClientCommandHandler.cpp b/server/src/client/ConnectedClientCommandHandler.cpp index 9eba1fd..526d7ca 100644 --- a/server/src/client/ConnectedClientCommandHandler.cpp +++ b/server/src/client/ConnectedClientCommandHandler.cpp @@ -1162,8 +1162,8 @@ CommandResult ConnectedClient::handleCommandChannelGroupAddPerm(Command &cmd) { permission::v2::PermissionUpdateType::set_value, permission::v2::PermissionUpdateType::do_nothing, - cmd[index]["permnegated"].as() ? 1 : 0, - cmd[index]["permskip"].as() ? 1 : 0 + cmd[index]["permskip"].as() ? 1 : 0, + cmd[index]["permnegated"].as() ? 1 : 0 ); updateList |= permission_is_group_property(permType); } @@ -2335,8 +2335,9 @@ CommandResult ConnectedClient::handleCommandChannelAddPerm(Command &cmd) { permission::v2::PermissionUpdateType::set_value, permission::v2::PermissionUpdateType::do_nothing, - cmd[index]["permnegated"].as() ? 1 : 0, - cmd[index]["permskip"].as() ? 1 : 0 + + cmd[index]["permskip"].as() ? 1 : 0, + cmd[index]["permnegated"].as() ? 1 : 0 ); updateClients |= permission_is_client_property(permType); update_view |= permType == permission::i_channel_needed_view_power; @@ -2820,8 +2821,8 @@ CommandResult ConnectedClient::handleCommandServerGroupAddPerm(Command &cmd) { permission::v2::PermissionUpdateType::set_value, permission::v2::PermissionUpdateType::do_nothing, - cmd[index]["permnegated"].as() ? 1 : 0, - cmd[index]["permskip"].as() ? 1 : 0 + cmd[index]["permskip"].as() ? 1 : 0, + cmd[index]["permnegated"].as() ? 1 : 0 ); sgroupUpdate |= permission_is_group_property(permType); checkTp |= permission_is_client_property(permType); @@ -2978,8 +2979,8 @@ CommandResult ConnectedClient::handleCommandServerGroupAutoAddPerm(ts::Command& permission::v2::PermissionUpdateType::set_value, permission::v2::PermissionUpdateType::do_nothing, - cmd[index]["permnegated"].as() ? 1 : 0, - cmd[index]["permskip"].as() ? 1 : 0 + cmd[index]["permskip"].as() ? 1 : 0, + cmd[index]["permnegated"].as() ? 1 : 0 ); } } @@ -6456,7 +6457,7 @@ CommandResult ConnectedClient::handleCommandPlaylistAddPerm(ts::Command &cmd) { playlist->permissions()->setPermissionGranted(permType, cmd[index]["permvalue"], nullptr); } else { - playlist->permissions()->setPermission(permType, cmd[index]["permvalue"], nullptr, cmd[index]["permnegated"], cmd[index]["permskip"]); + playlist->permissions()->setPermission(permType, cmd[index]["permvalue"], nullptr, cmd[index]["permskip"], cmd[index]["permnegated"]); } } diff --git a/server/src/client/voice/VoiceClientConnection.cpp b/server/src/client/voice/VoiceClientConnection.cpp index 987381f..7ff4322 100644 --- a/server/src/client/voice/VoiceClientConnection.cpp +++ b/server/src/client/voice/VoiceClientConnection.cpp @@ -228,7 +228,7 @@ void VoiceClientConnection::handleDatagramReceived(const pipes::buffer_view& buf } else { //TODO: Needs rethinking because read_queue.push_back increases the index, but this has not to be the packet id if(!read_queue.push_back(move(packet))) { - debugMessage(this->client->getServerId(), "{} Got unordered packet of type {} which is out of the buffer range of {}. Packet ID: {}. Dropping packet.", + debugMessage(this->client->getServerId(), "{} Got unordered packet of type {} which is out of the buffer capacity of {}. Packet ID: {}. Dropping packet.", CLIENT_STR_LOG_PREFIX_(this->client), packet_type.name(), read_queue.capacity(), diff --git a/shared b/shared index a0cca36..c8cae59 160000 --- a/shared +++ b/shared @@ -1 +1 @@ -Subproject commit a0cca36eca11da410626a340dbe4377067d59c1b +Subproject commit c8cae593a016b842031b5f73e103554a4f87cb66