mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-06-19 13:48:02 +02:00
log disambigous npc in error log
This commit is contained in:
parent
d6a439b666
commit
204b3cfc93
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user