Added user argument to org:add_org in minetest interactions, anticipating change on master
This commit is contained in:
@ -318,7 +318,7 @@ function modpol.interactions.add_org(initiator, base_org_id)
|
|||||||
_contexts[initiator] = function(input)
|
_contexts[initiator] = function(input)
|
||||||
if input then
|
if input then
|
||||||
local base_org = modpol.orgs.get_org(base_org_id)
|
local base_org = modpol.orgs.get_org(base_org_id)
|
||||||
local result = base_org:add_org(input)
|
local result = base_org:add_org(input, initiator)
|
||||||
if result then
|
if result then
|
||||||
local message = input .. " created"
|
local message = input .. " created"
|
||||||
modpol.interactions.message(initiator, message)
|
modpol.interactions.message(initiator, message)
|
||||||
|
Reference in New Issue
Block a user