From 354a44a67573bdb578ffa5af7ef93578cf12cb3e Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Tue, 17 Sep 2024 15:47:44 +0200 Subject: [PATCH] player_info: count empty string as no player --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index ee7f5a8..4451621 100644 --- a/init.lua +++ b/init.lua @@ -305,7 +305,7 @@ end function cc.player_info(player_name, params) player_name = params[2] or player_name - if not player_name then + if not player_name or "" == player_name then return false, S("Missing player name.") end local player_factions = factions.get_player_factions(player_name)