mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 07:54:52 +09:00
Update reports.lua
As discussed on discord
This commit is contained in:
1 parent
86c51157f4
commit
f6982f6b79
1 file changed
+2
-2
@@ -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