added missing error message

This commit is contained in:
Sokomine 2021-06-02 22:43:28 +02:00
parent 062699b1da
commit a2e11f5fb6

View File

@ -142,8 +142,9 @@ yl_speak_up.get_fs_initial_config = function(player, n_id, d_id, is_initial_conf
-- is the player allowed to edit this npc?
if(not(yl_speak_up.may_edit_npc(player, n_id))) then
-- TODO: better error message (this one is a local function...)
return get_error_message()
return "size[6,2]"..
"label[0.2,0.0;Sorry. You are not authorized\nto edit this NPC.]"..
"button_exit[2,1.5;1,0.9;back_from_error_msg;Exit]"
end
local tmp_name = n_id