mirror of
https://github.com/mt-mods/playerfactions.git
synced 2025-12-17 22:05:25 +01:00
locale: reuse string for missing name
besides, "nil" is a valid name. This way there is no confusion.
This commit is contained in:
2
init.lua
2
init.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user