mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-29 10:43:50 +01:00
player_info: count empty string as no player
This commit is contained in:
parent
599acd3ee2
commit
354a44a675
2
init.lua
2
init.lua
@ -305,7 +305,7 @@ end
|
|||||||
|
|
||||||
function cc.player_info(player_name, params)
|
function cc.player_info(player_name, params)
|
||||||
player_name = params[2] or player_name
|
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.")
|
return false, S("Missing player name.")
|
||||||
end
|
end
|
||||||
local player_factions = factions.get_player_factions(player_name)
|
local player_factions = factions.get_player_factions(player_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user