formspec_escape custom texts to predefined formspecs
This commit is contained in:
parent
4f1b6808c7
commit
95f114b294
@ -83,7 +83,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
clear_context(name)
|
||||
chat_formspec.show_select_predefined(name)
|
||||
elseif fields.change_text then
|
||||
context.replacement = fields.change_text_field or ""
|
||||
context.replacement = minetest.formspec_escape(fields.change_text_field or "")
|
||||
minetest.show_formspec(name, "chat_formspec:predefined", chat_formspec.get_predefined_template(context.id, context.replacement))
|
||||
elseif fields.send then
|
||||
if not minetest.check_player_privs(name, chat_formspec.predefined_priv) then return true end
|
||||
|
4
todo.txt
4
todo.txt
@ -1,5 +1,7 @@
|
||||
check to not send formspecs to death players :/ (done?)
|
||||
priv checks (bailiff / staff) before sending out a formspec to the target
|
||||
priv checks (bailiff / staff) before sending out a formspec to the target (done?)
|
||||
do I have to fs-escape chat messages?
|
||||
|
||||
create formspecs how to replant / how to chat
|
||||
add a licence
|
||||
colorize answers / maybe even play a notification sound to provent the message getting lost in the chat flow
|
||||
|
Reference in New Issue
Block a user