Fixed self reporting

This commit is contained in:
Cooldude2606
2021-04-05 22:55:25 +01:00
parent 3c718fa081
commit 93a446747b
3 changed files with 4 additions and 0 deletions

View File

@@ -173,6 +173,7 @@ return {
},
['command/report'] = {
auth=function(player,selected_player)
if player == selected_player then return false end
if not Roles.player_allowed(player,'command/give-warning') then
return not Roles.player_has_flag(selected_player,'report-immune')
end