Merge branch 'master' into console-flood

This commit is contained in:
SticklyMan 2018-02-11 02:40:23 -07:00
commit 34f146f9b6
4 changed files with 18 additions and 2 deletions

View File

@ -1,6 +1,7 @@
# ULib Changelog
## v2.70 - *(00/00/00)*
* [ADD] Hook when a new, previously unknown access is registered. UCLChanged is now called as well.
* [CHANGE] Moved bans to SQLite.
* [FIX] Lua error with unspecified optional player arguments from server console (thanks, Timmy).
* [FIX] Overridden chat commands now respect the hidden-state (thanks, Timmy).

View File

@ -990,7 +990,11 @@ 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 )
hook.Call( ULib.HOOK_ACCESS_REGISTERED )
end )
end
end

View File

@ -87,6 +87,17 @@ ULib.HOOK_UCLAUTH = "UCLAuthed"
]]
ULib.HOOK_UCLCHANGED = "UCLChanged"
--[[
Hook: UCLAccessRegistered
Called *on both server and client* when one or more unrecognized accesses are registered. No parameters are passed to callbacks.
Revisions:
v2.70 - Initial
]]
ULib.HOOK_ACCESS_REGISTERED = "UCLAccessRegistered"
--[[
Hook: ULibReplicatedCvarChanged

View File

@ -1 +1 @@
1518338747
1518342034