log disambigous npc in error log

This commit is contained in:
Sokomine 2023-01-27 21:54:57 +01:00
parent d6a439b666
commit 204b3cfc93

View File

@ -494,11 +494,15 @@ yl_speak_up.check_for_disambigous_results = function(n_id, pname)
end end
end end
if(#dialog_results>1) then if(#dialog_results>1) then
minetest.chat_send_player(pname, "ERROR: Dialog ".. local msg = "ERROR: Dialog "..
tostring(d_id)..", option "..tostring(o_id).. tostring(d_id)..", option "..tostring(o_id)..
", has multiple results of type dialog: ".. ", has multiple results of type dialog: "..
minetest.serialize(dialog_results)..". Please ".. minetest.serialize(dialog_results)..". Please "..
"let someone with npc_master priv fix that first!") "let someone with npc_master priv fix that first!"
yl_speak_up.log_change(pname, n_id, msg, "error")
if(pname) then
minetest.chat_send_player(pname, msg)
end
errors_found = true errors_found = true
end end
end end