Improved some stuff

This commit is contained in:
WolverinDEV
2020-01-26 16:15:36 +01:00
parent c7b6c0a3ba
commit a69100f689
4 changed files with 52 additions and 54 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ void ConnectedClient::updateChannelClientProperties(bool lock_channel_tree, bool
notifyList.emplace_back(property::CLIENT_IS_PRIORITY_SPEAKER);
}
block_flood = !!permission_ignore_antiflood.has_value || permission_ignore_antiflood.value <= 0;
block_flood = !permission::v2::permission_granted(1, permission_ignore_antiflood);
if(server_ref)
server_ref->notifyClientPropertyUpdates(_this.lock(), notifyList, notify_self);
this->updateTalkRights(permission_talk_power.has_value ? permission_talk_power.value : 0);