fix: set roles after jailing

This commit is contained in:
oof2win2 authored and Cooldude2606 committed 2023-02-25 15:36:33 +00:00
1 parent 7568da8e8d
commit ceca8fbf00
3 files changed
+39 -5

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
local Global = require 'utils.global' --- @dep utils.global
local Jail = {
old_roles = {}
}
local old_roles = Jail.old_roles
Global.register(old_roles, function(tbl)
Jail.old_roles = tbl
old_roles = tbl
end)
return Jail