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
commit1acfdf5914a91071da52f2203dce90ec3c30d5ba (patch)
treeecc07df37df1db9a79a86f936ed683a9654861f4 /core/moduleapi.lua
parent974917a5a22e27441c086474be2672b3ba1fa3af (diff)
downloadprosody-1acfdf5914a91071da52f2203dce90ec3c30d5ba.tar.gz
prosody-1acfdf5914a91071da52f2203dce90ec3c30d5ba.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