Notify.suppress_for_function now actually returns results!

This commit is contained in:
VorTechnix 2024-10-16 19:13:22 -07:00
parent 5331b32159
commit 440dae68a1
No known key found for this signature in database
GPG key ID: 091E91A69545D5BA

View file

@ -153,8 +153,9 @@ function Notify.suppress_for_function(name, func)
-- If the player is already suppressed, cancel it unless it's a function
if not check_clear_suppressed(name, suppress) then return false end
suppress[name] = func
suppress[name]()
local success, result = suppress[name]()
suppress[name] = nil
return success, result
end
--- WorldEdit compatibility