lua_api.txt: Improve privs_to_string and string_to_privs documentation (#9228)

This commit is contained in:
ANAND 2020-01-19 15:46:54 +05:30 committed by SmallJoker
parent e8fd1ce623
commit 468eb4bf57

@ -4336,9 +4336,13 @@ Setting-related
Authentication
--------------
* `minetest.string_to_privs(str)`: returns `{priv1=true,...}`
* `minetest.privs_to_string(privs)`: returns `"priv1,priv2,..."`
* Convert between two privilege representations
* `minetest.string_to_privs(str[, delim])`:
* Converts string representation of privs into table form
* `delim`: String separating the privs. Defaults to `","`.
* Returns `{ priv1 = true, ... }`
* `minetest.privs_to_string(privs[, delim])`:
* Returns the string representation of `privs`
* `delim`: String to delimit privs. Defaults to `","`.
* `minetest.get_player_privs(name) -> {priv1=true,...}`
* `minetest.check_player_privs(player_or_name, ...)`:
returns `bool, missing_privs`