mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Update reports.lua
As discussed on discord
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user