aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-03-23 02:33:15 +0100
committerKim Alvefur <zash@zash.se>2013-03-23 02:33:15 +0100
commit75e786c1f0ca40d9244324f30d9ef662e7e24974 (patch)
treeecc07df37df1db9a79a86f936ed683a9654861f4 /core/moduleapi.lua
parent0019ee9380c3129056cd4521018a888b69068ca0 (diff)
downloadprosody-75e786c1f0ca40d9244324f30d9ef662e7e24974.tar.gz
prosody-75e786c1f0ca40d9244324f30d9ef662e7e24974.zip
core.*: Complete removal of all traces of the "core" section and section-related code.
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 20898fcf..f9701471 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -167,12 +167,9 @@ function api:shared(...)
end
function api:get_option(name, default_value)
- local value = config.get(self.host, self.name, name);
+ local value = config.get(self.host, name);
if value == nil then
- value = config.get(self.host, "core", name);
- if value == nil then
- value = default_value;
- end
+ value = default_value;
end
return value;
end