A lot of changes to 1.4.17

This commit is contained in:
WolverinDEV
2020-07-28 18:36:32 +02:00
parent 071a6533e0
commit ad51f8118d
10 changed files with 23 additions and 12 deletions
@@ -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) {
+1 -1
View File
@@ -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);