Fixed some stuff
This commit is contained in:
@@ -99,7 +99,7 @@ bool ConnectedClient::notifyGroupPermList(const std::shared_ptr<Group>& group, b
|
||||
} else {
|
||||
cmd[index]["permid"] = (uint16_t) (type->type | PERM_ID_GRANT);
|
||||
}
|
||||
cmd[index]["permvalue"] = permission.values.value;
|
||||
cmd[index]["permvalue"] = permission.values.grant;
|
||||
cmd[index]["permnegated"] = permission.flags.negate;
|
||||
cmd[index]["permskip"] = permission.flags.skip;
|
||||
index++;
|
||||
|
||||
@@ -352,7 +352,9 @@ unique_ptr<protocol::ClientPacket> VoiceClientConnection::next_reassembled_packe
|
||||
}
|
||||
|
||||
if(current_packet->type() != PacketTypeInfo::Command && current_packet->type() != PacketTypeInfo::CommandLow) {
|
||||
return buffer->pop_front(); /* we don't have to reassemble anything */
|
||||
auto tmp = buffer->pop_front(); /* we don't have to reassemble anything */
|
||||
more |= buffer->front_set(); /* set the more flag if we know that we have more of this packet */
|
||||
return tmp;
|
||||
}
|
||||
|
||||
unique_ptr<ClientPacket> final_packet;
|
||||
@@ -435,6 +437,7 @@ unique_ptr<protocol::ClientPacket> VoiceClientConnection::next_reassembled_packe
|
||||
}
|
||||
}
|
||||
|
||||
more |= buffer->front_set(); /* set the more flag if we have more to process */
|
||||
buffer_lock.unlock();
|
||||
|
||||
std::string error = "success";
|
||||
|
||||
Reference in New Issue
Block a user