mirror of
https://github.com/minetest-mods/xban2.git
synced 2025-04-30 13:41:40 -04:00
Merge ee196ab6e9
into 33e3fcd15b
This commit is contained in:
commit
a460dec811
1 changed files with 4 additions and 0 deletions
4
gui.lua
4
gui.lua
|
@ -100,6 +100,10 @@ end
|
|||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
if formname ~= FORMNAME then return end
|
||||
local name = player:get_player_name()
|
||||
if not minetest.check_player_privs(name, { ban=true}) then
|
||||
minetest.log("Received xban form fields from user who lacks privilege:: "..name)
|
||||
return
|
||||
end
|
||||
local state = get_state(name)
|
||||
if fields.player then
|
||||
local t = minetest.explode_textlist_event(fields.player)
|
||||
|
|
Loading…
Add table
Reference in a new issue