Software /
code /
prosody
Comparison
core/configmanager.lua @ 12083:ec21e379c145
configmanager: Update error message to say 'VirtualHost' instead of 'Host'
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 20 Dec 2021 20:46:24 +0000 |
parent | 10375:3d0adbc74c39 |
child | 12440:1ef893715311 |
comparison
equal
deleted
inserted
replaced
12082:e87563fefd85 | 12083:ec21e379c145 |
---|---|
171 error(format("Name of Component %q contains forbidden characters", name), 0); | 171 error(format("Name of Component %q contains forbidden characters", name), 0); |
172 end | 172 end |
173 name = prepped_name; | 173 name = prepped_name; |
174 if rawget(config_table, name) and rawget(config_table[name], "defined") | 174 if rawget(config_table, name) and rawget(config_table[name], "defined") |
175 and not rawget(config_table[name], "component_module") then | 175 and not rawget(config_table[name], "component_module") then |
176 error(format("Component %q clashes with previously defined Host %q, for services use a sub-domain like conference.%s", | 176 error(format("Component %q clashes with previously defined VirtualHost %q, for services use a sub-domain like conference.%s", |
177 name, name, name), 0); | 177 name, name, name), 0); |
178 end | 178 end |
179 set(config_table, name, "component_module", "component"); | 179 set(config_table, name, "component_module", "component"); |
180 -- Don't load the global modules by default | 180 -- Don't load the global modules by default |
181 set(config_table, name, "load_global_modules", false); | 181 set(config_table, name, "load_global_modules", false); |