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

@@ -28,6 +28,8 @@ Commands.new_command('report', 'Reports a player and notifies moderators')
if not input then return end
if Roles.player_has_flag(input, 'report-immune') then
return reject{'expcom-report.player-immune'}
elseif player == input then
return reject{'expcom-report.self-report'}
else
return input
end