From eda6abdccdef3094a2ee0dce8c824a24f1505f49 Mon Sep 17 00:00:00 2001 From: SticklyMan Date: Sun, 4 Feb 2018 17:26:08 -0700 Subject: [PATCH] ULib should be calling UCLChanged after registerAccess. --- lua/ulib/server/ucl.lua | 5 ++++- ulib.build | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/ulib/server/ucl.lua b/lua/ulib/server/ucl.lua index d996d69..be5b583 100644 --- a/lua/ulib/server/ucl.lua +++ b/lua/ulib/server/ucl.lua @@ -990,7 +990,10 @@ function ucl.registerAccess( access, groups, comment, category ) table.insert( ucl.groups[ group ].allow, access ) end - timer.Create( "ULibSaveGroups", 1, 1, ucl.saveGroups ) -- 1 sec delay, 1 rep + timer.Create( "ULibSaveGroups", 1, 1, function() -- 1 sec delay, 1 rep + ucl.saveGroups() + hook.Call( ULib.HOOK_UCLCHANGED ) + end ) end end diff --git a/ulib.build b/ulib.build index b79f135..f287b29 100644 --- a/ulib.build +++ b/ulib.build @@ -1 +1 @@ -1507560100 +1517790368