locale: reuse string for missing name

besides, "nil" is a valid name. This way there is no confusion.
This commit is contained in:
Luke aka SwissalpS
2024-09-15 01:22:41 +02:00
parent c28b0a0b04
commit 44d01cc834
3 changed files with 1 additions and 3 deletions

View File

@@ -299,7 +299,7 @@ local function handle_command(name, param)
elseif action == "player_info" then
local player_name = params[2]
if not player_name then
return false, S("The player name is nil or empty.")
return false, S("Missing player name.")
end
local player_factions = factions.get_player_factions(player_name)
if not player_factions then