Remove pointless message when there's no messages

This commit is contained in:
Wuzzy 2019-08-30 03:09:29 +02:00
parent 5fdc520400
commit c7d1f54167
3 changed files with 3 additions and 9 deletions

View File

@ -72,11 +72,7 @@ if enable_saving then
local name = player:get_player_name()
if messages[name] ~= nil and #messages[name] >= 1 then
minetest.chat_send_player(name, minetest.colorize("#0ff", S("Number of saved PMs: @1. Enter /pms command to view.", #messages[name])))
return false
else
minetest.chat_send_player(name, minetest.colorize("#0ff", S("You have no saved PMs. Send PMs with the /pm command.")))
return true
minetest.chat_send_player(name, minetest.colorize("#0ff", S("You've got mail! Number of saved PMs: @1. Enter /pms command to view.", #messages[name])))
end
end)
end

View File

@ -11,5 +11,4 @@ PM saving is disabled.=Speichern von PNs ist deaktiviert.
No saved PMs.=Keine gespeicherten PNs.
Saved PMs:=Gespeicherte PNs:
@1 saved PMs=@1 gespeicherte PNs
Number of saved PMs: @1. Enter /pms command to view.=Anzahl der gespeicherten PNs: @. „/pms“-Behel eingeben, um sie zu lesen.
You have no saved PMs. Send PMs with the /pm command.=Sie haben keine gespeicherten PNs. Senden Sie PNs mit dem „/pm“-Befehl.
You've got mail! Number of saved PMs: @1. Enter /pms command to view.=Sie haben Post! Anzahl der gespeicherten PNs: @. „/pms“-Behel eingeben, um sie zu lesen.

View File

@ -11,5 +11,4 @@ PM saving is disabled.=
No saved PMs.=
Saved PMs:=
@1 saved PMs=
Number of saved PMs: @1. Enter /pms command to view.=
You have no saved PMs. Send PMs with the /pm command.=
You've got mail! Number of saved PMs: @1. Enter /pms command to view.=