Software /
code /
prosody
Diff
core/configmanager.lua @ 7947:24170d74b00b
core: Split some very long lines [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 04 Mar 2017 17:49:48 +0100 |
parent | 6779:6236668da30a |
child | 8153:c22d5680ca68 |
line wrap: on
line diff
--- a/core/configmanager.lua Fri Mar 03 11:51:32 2017 +0100 +++ b/core/configmanager.lua Sat Mar 04 17:49:48 2017 +0100 @@ -158,7 +158,8 @@ function env.Component(name) name = nameprep(name); - if rawget(config_table, name) and rawget(config_table[name], "defined") and not rawget(config_table[name], "component_module") then + if rawget(config_table, name) and rawget(config_table[name], "defined") + and not rawget(config_table[name], "component_module") then error(format("Component %q clashes with previously defined Host %q, for services use a sub-domain like conference.%s", name, name, name), 0); end