actually safe adding/removing edit privs

This commit is contained in:
Sokomine 2023-05-25 21:05:49 +02:00
parent e04a6b963e
commit 3fa2a77deb

View File

@ -209,10 +209,12 @@ yl_speak_up.input_fs_initial_config = function(player, formname, fields)
"NPC name: \""..tostring(fields.n_npc)..
"\" Description: \""..tostring(fields.n_description).."\".")
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,
"Added to \"may be edited by\": "..tostring(fields.add_may_edit))
elseif(fields.delete_may_edit and fields.delete_may_edit ~= ""
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,
"Removed from \"may be edited by\": "..tostring(fields.list_may_edit))
-- just change name and description