Update reports.lua

As discussed on discord
This commit is contained in:
Windsinger
2022-10-23 19:20:51 +02:00
committed by Cooldude2606
parent 2edfa56ee1
commit 6d07a3d097

View File

@@ -132,7 +132,7 @@ function Reports.report_player(player, by_player_name, reason)
if not player then return end if not player then return end
local player_name = player.name local player_name = player.name
if reason == nil or not reason:find("/S") then reason = 'No reason given' end if reason == nil or not reason:find("%S") then reason = 'No reason given' end
local reports = user_reports[player_name] local reports = user_reports[player_name]
if not reports then if not reports then
@@ -222,4 +222,4 @@ function Reports.remove_all(player, removed_by_name)
return true return true
end end
return Reports return Reports