forked from TeamUlysses/ulib
Merge branch 'master' into console-flood
This commit is contained in:
commit
34f146f9b6
@ -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).
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -1 +1 @@
|
||||
1518338747
|
||||
1518342034
|
||||
|
Loading…
Reference in New Issue
Block a user