fix incorrect query

search records by id when creating a table of accounts to kick on ban
master
shivajiva101 2017-11-25 19:37:07 +00:00 committed by GitHub
parent 3effc6eccf
commit 213fc4ec41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ local function ban_player(name, source, reason, expires)
end
minetest.log("action", msg_l)
-- kick all names associated with the player
local records = find_records(name)
local records = find_records_by_id(id)
for i, v in ipairs(records) do
minetest.kick_player(v.name, msg_k)
end