aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-12-10 03:00:16 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-12-10 03:00:16 +0500
commit8495a4cfffc975d8369e2f18b08b80e5f23bc21d (patch)
tree27bfe8b9efc30799a32a6fb286b651dffe5bdb99 /core
parentd4fe7ffc81ca9144073f573e9288298a9bb568d3 (diff)
downloadprosody-8495a4cfffc975d8369e2f18b08b80e5f23bc21d.tar.gz
prosody-8495a4cfffc975d8369e2f18b08b80e5f23bc21d.zip
modulemanager: Fixed a global access.
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 65a38ccb..7ee262c4 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -404,8 +404,8 @@ function api:get_option(name, default_value)
return value;
end
-function api:get_option_string(...)
- local value = self:get_option(...);
+function api:get_option_string(name, default_value)
+ local value = self:get_option(name, default_value);
if type(value) == "table" then
if #value > 1 then
self:log("error", "Config option '%s' does not take a list, using just the first item", name);