aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerstazi <erstazi@c-wd.net>2024-04-02 12:35:40 -0400
committergpcf <gpcf@gpcf.eu>2024-07-27 22:24:53 +0200
commitff9c68c1a46f2f021efe3f8aebcf9094d90639a4 (patch)
treec73871cf4d20e4d04d476043e2f22c0e5c15c3ba
parentfaf07870d3d0026706448272c5e1b28ae089004e (diff)
downloadxban2-ff9c68c1a46f2f021efe3f8aebcf9094d90639a4.tar.gz
xban2-ff9c68c1a46f2f021efe3f8aebcf9094d90639a4.tar.bz2
xban2-ff9c68c1a46f2f021efe3f8aebcf9094d90639a4.zip
Forgot to add a check with minetest.player_exists for when empty password
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 678dec7..213778c 100644
--- a/init.lua
+++ b/init.lua
@@ -288,7 +288,7 @@ minetest.register_on_prejoinplayer(function(name, ip)
return ("Banned: Expires: %s, Reason: %s"):format(
date, e.reason)
end
- if not xban.has_password(name) then
+ if minetest.player_exists(name) and not xban.has_password(name) then
return "This account has been deactivated. Please, contact the server owner on the forums."
end
if minetest.settings:get("moderate_new_accounts") and not minetest.player_exists(name) then