A lot of changes to 1.4.17
This commit is contained in:
@@ -1072,6 +1072,8 @@ command_result ConnectedClient::handleCommandChannelEdit(Command &cmd) {
|
||||
}
|
||||
keys.push_back(&property);
|
||||
}
|
||||
if(keys.empty())
|
||||
return command_result{error::ok};
|
||||
|
||||
unique_lock server_channel_w_lock(this->server ? this->server->channel_tree_lock : serverInstance->getChannelTreeLock(), defer_lock);
|
||||
if(require_write_lock) {
|
||||
|
||||
@@ -731,7 +731,7 @@ command_result ConnectedClient::handleCommandClientEdit(Command &cmd, const std:
|
||||
);
|
||||
}
|
||||
if(update_talk_rights)
|
||||
client->updateTalkRights(client->properties()[property::CLIENT_TALK_POWER]);
|
||||
client->updateTalkRights(client->calculate_permission(permission::i_client_talk_power, client->getChannelId()));
|
||||
|
||||
if(this->server)
|
||||
this->server->notifyClientPropertyUpdates(client, updates);
|
||||
|
||||
Reference in New Issue
Block a user