change orgs to use id numbers as their table key and function input param

This commit is contained in:
MisterE123
2021-03-08 14:06:15 -05:00
parent 418926f551
commit 419fc84822
5 changed files with 228 additions and 93 deletions

View File

@ -59,7 +59,8 @@ minetest.register_chatcommand(
"joinorg", {
privs = {},
func = function(user, param)
local success, result = modpol.add_member(param, user)
local org_id = modpol.get_org_id_by_name(param)
local success, result = modpol.add_member(org_id, user)
return true, result
end,
})