Updates for 1.4.1
This commit is contained in:
@@ -440,7 +440,7 @@ int64_t GroupManager::generateGroupId(sql::SqlManager* sql) {
|
||||
return hightestGroupId + 1;
|
||||
}
|
||||
|
||||
std::deque<property::ClientProperties> GroupManager::update_server_group_property(const shared_ptr<server::ConnectedClient> &client, bool channel_lock) {
|
||||
std::deque<property::ClientProperties> GroupManager::update_server_group_property(const shared_ptr<server::ConnectedClient> &client, bool channel_lock, const std::shared_ptr<BasicChannel>& channel) {
|
||||
std::deque<property::ClientProperties> changed;
|
||||
|
||||
//Server groups
|
||||
@@ -467,8 +467,8 @@ std::deque<property::ClientProperties> GroupManager::update_server_group_propert
|
||||
}
|
||||
|
||||
//Channel groups
|
||||
if(client->getChannel()){
|
||||
shared_ptr<GroupAssignment> group = this->getChannelGroup(client->getClientDatabaseId(), client->getChannel(), true);
|
||||
if(channel){
|
||||
shared_ptr<GroupAssignment> group = this->getChannelGroup(client->getClientDatabaseId(), channel, true);
|
||||
if(client->properties()[property::CLIENT_CHANNEL_GROUP_INHERITED_CHANNEL_ID] != group->channelId) {
|
||||
client->properties()[property::CLIENT_CHANNEL_GROUP_INHERITED_CHANNEL_ID] = group->channelId;
|
||||
changed.push_back(property::CLIENT_CHANNEL_GROUP_INHERITED_CHANNEL_ID);
|
||||
|
||||
Reference in New Issue
Block a user