[FIX] ULib.ucl.registerAccess not allowing an access tag to be registered to no groups.

This commit is contained in:
Nayruden 2013-08-31 21:32:24 -06:00
parent 900febcab8
commit 65c7afb53f
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Title: ULib Readme
*ULib v2.51 (released 08/30/13)*
*ULib v2.52 (released 00/00/00)*
ULib is a developer library for GMod 10 (<http://garrysmod.com/>).
@ -44,6 +44,9 @@ After installing ULib correctly, scripts that take advantage of ULib will take c
Rest easy!
Group: Changelog
v2.52 - *(00/00/00)*
* [FIX] ULib.ucl.registerAccess not allowing an access tag to be registered to no groups.
v2.51 - *(08/30/13)*
* [FIX] ULib.ucl.userAllow not working on disconnected players (Thanks, JackYack13).
* [FIX] Issue with setting groups with capitals in the group name (Thanks, FPtje!).

View File

@ -801,6 +801,7 @@ function ucl.registerAccess( access, groups, comment, category )
access = access:lower()
comment = comment or ""
if groups == nil then groups = {} end
if type( groups ) == "string" then
groups = { groups }
end

View File

@ -7,7 +7,7 @@
ULib = ULib or {}
ULib.VERSION = 2.51
ULib.VERSION = 2.52
ULib.ACCESS_ALL = "user"
ULib.ACCESS_OPERATOR = "operator"