From a2e11f5fb68cdc7b209a24c8026962e947d59d4b Mon Sep 17 00:00:00 2001 From: Sokomine Date: Wed, 2 Jun 2021 22:43:28 +0200 Subject: [PATCH] added missing error message --- fs_initial_config.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs_initial_config.lua b/fs_initial_config.lua index 3485a78..e2499c9 100644 --- a/fs_initial_config.lua +++ b/fs_initial_config.lua @@ -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