actually safe adding/removing edit privs
This commit is contained in:
parent
e04a6b963e
commit
3fa2a77deb
@ -209,10 +209,12 @@ yl_speak_up.input_fs_initial_config = function(player, formname, fields)
|
|||||||
"NPC name: \""..tostring(fields.n_npc)..
|
"NPC name: \""..tostring(fields.n_npc)..
|
||||||
"\" Description: \""..tostring(fields.n_description).."\".")
|
"\" Description: \""..tostring(fields.n_description).."\".")
|
||||||
elseif(fields.add_may_edit and fields.add_may_edit ~= "") then
|
elseif(fields.add_may_edit and fields.add_may_edit ~= "") then
|
||||||
|
yl_speak_up.save_dialog(n_id, dialog)
|
||||||
yl_speak_up.log_change(pname, n_id,
|
yl_speak_up.log_change(pname, n_id,
|
||||||
"Added to \"may be edited by\": "..tostring(fields.add_may_edit))
|
"Added to \"may be edited by\": "..tostring(fields.add_may_edit))
|
||||||
elseif(fields.delete_may_edit and fields.delete_may_edit ~= ""
|
elseif(fields.delete_may_edit and fields.delete_may_edit ~= ""
|
||||||
and fields.list_may_edit and fields.list_may_edit ~= "") then
|
and fields.list_may_edit and fields.list_may_edit ~= "") then
|
||||||
|
yl_speak_up.save_dialog(n_id, dialog)
|
||||||
yl_speak_up.log_change(pname, n_id,
|
yl_speak_up.log_change(pname, n_id,
|
||||||
"Removed from \"may be edited by\": "..tostring(fields.list_may_edit))
|
"Removed from \"may be edited by\": "..tostring(fields.list_may_edit))
|
||||||
-- just change name and description
|
-- just change name and description
|
||||||
|
Loading…
Reference in New Issue
Block a user