22 lines
1.0 KiB
Lua
22 lines
1.0 KiB
Lua
local getenv = Lua.os.getenv
|
|
local stringy = Lua.require "stringy"
|
|
|
|
local domain = getenv("DOMAIN")
|
|
local abuse = getenv("SERVER_CONTACT_INFO_ABUSE") or "xmpp:abuse@" .. domain
|
|
local admin = getenv("SERVER_CONTACT_INFO_ADMIN") or "xmpp:admin@" .. domain
|
|
local feedback = getenv("SERVER_CONTACT_INFO_FEEDBACK") or "xmpp:feedback@" .. domain
|
|
local sales = getenv("SERVER_CONTACT_INFO_SALES") or "xmpp:sales@" .. domain
|
|
local security = getenv("SERVER_CONTACT_INFO_SECURITY") or "xmpp:security@" .. domain
|
|
local support = getenv("SERVER_CONTACT_INFO_SUPPORT") or "xmpp:support@" .. domain
|
|
|
|
contact_info = {
|
|
abuse = stringy.split(abuse, ", ");
|
|
admin = stringy.split(admin, ", ");
|
|
feedback = stringy.split(feedback, ", ");
|
|
sales = stringy.split(sales, ", ");
|
|
security = stringy.split(security, ", ");
|
|
support = stringy.split(support, ", ");
|
|
}
|
|
|
|
welcome_message = "Kaixo $username, ongi etorri $host IM zerbitzura! Mesedez irakurri itzazu ondorengo <a href='https://lainoa.eus/terms/tos.html'>Erabilpen baldintzak</a>."
|