mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 17:47:34 +00:00
Fix: don't show support url if not set
This commit is contained in:
parent
e708172658
commit
f65141800f
|
@ -1,14 +1,14 @@
|
||||||
local function filterMessage(reason)
|
local function filterMessage(reason)
|
||||||
local Message = {}
|
local Message = {}
|
||||||
Message[1] = "----------------------------------------"
|
table.insert(Message, "----------------------------------------")
|
||||||
Message[2] = gmInte.getTranslation("filter.ds.1", "You cannot join this server")
|
table.insert(Message, gmInte.getTranslation("filter.ds.1", "You cannot join this server"))
|
||||||
Message[3] = ""
|
table.insert(Message, "")
|
||||||
Message[4] = gmInte.getTranslation("filter.ds.2", "Reason: {1}", reason && reason || gmInte.getTranslation("filter.none", "none"))
|
table.insert(Message, gmInte.getTranslation("filter.ds.2", "Reason: {1}", reason && reason || gmInte.getTranslation("filter.none", "none")))
|
||||||
Message[5] = gmInte.getTranslation("filter.ds.3", "Help URL: {1}", gmInte.config.supportLink && gmInte.config.supportLink || gmInte.getTranslation("filter.none", "none"))
|
if gmInte.config.supportLink && gmInte.config.supportLink != "" then table.insert(Message, gmInte.getTranslation("filter.ds.3", "Help URL: {1}", gmInte.config.supportLink)) end
|
||||||
Message[6] = ""
|
table.insert(Message, "")
|
||||||
Message[7] = gmInte.getTranslation("filter.ds.4", "Have a nice day")
|
table.insert(Message, gmInte.getTranslation("filter.ds.4", "Have a nice day"))
|
||||||
Message[8] = "----------------------------------------"
|
table.insert(Message, "----------------------------------------")
|
||||||
Message[9] = gmInte.getTranslation("filter.ds.5", "Service provided by Gmod Integration")
|
table.insert(Message, gmInte.getTranslation("filter.ds.5", "Service provided by Gmod Integration"))
|
||||||
for k, v in ipairs(Message) do
|
for k, v in ipairs(Message) do
|
||||||
Message[k] = "\n" .. v
|
Message[k] = "\n" .. v
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user