diff --git a/fs_initial_config.lua b/fs_initial_config.lua index 12f2789..ab0b51b 100644 --- a/fs_initial_config.lua +++ b/fs_initial_config.lua @@ -62,8 +62,10 @@ yl_speak_up.input_fs_initial_config = function(player, formname, fields) elseif(not(fields.n_npc) or string.len(fields.n_npc) < 2) then error_msg = "The name of your NPC needs to be\nat least two characters long." elseif(minetest.check_player_privs(fields.n_npc, {interact=true}) - and not(minetest.check_player_privs(player, {npc_talk_master=true}))) then - error_msg = "You cannot name your NPC\nafter an existing player." + and not(minetest.check_player_privs(player, {npc_talk_master=true})) + and not(minetest.check_player_privs(player, {npc_talk_admin=true}))) then + error_msg = "You cannot name your NPC after an existing player.\n".. + "Only those with the npc_talk_admin priv can do so." elseif(not(fields.n_description) or string.len(fields.n_description) < 2) then error_msg = "Please provide a description of your NPC!" -- sensible length limit