Merge pull request #233 from Windsinger1985/patch-2

Update reports.lua
This commit is contained in:
Cooldude2606
2022-10-23 18:22:11 +01:00
committed by GitHub

View File

@@ -132,7 +132,7 @@ function Reports.report_player(player, by_player_name, reason)
if not player then return end
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]
if not reports then
@@ -222,4 +222,4 @@ function Reports.remove_all(player, removed_by_name)
return true
end
return Reports
return Reports