aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2012-06-09 02:27:44 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2012-06-09 02:27:44 +0200
commit8eec29745633bd84c2d325d42dbeeb4afd37d516 (patch)
treef224f9bbbd3070899a9ad981d0b4802a0fb22648 /prosodyctl
parent3d682bf8b1264fbeaf55d3da6659e6eda11d1b65 (diff)
downloadprosody-8eec29745633bd84c2d325d42dbeeb4afd37d516.tar.gz
prosody-8eec29745633bd84c2d325d42dbeeb4afd37d516.zip
mod_admin_telnet, prosody, prosodyctl, ejabberd2prosody: Don't depend on modules setting globals
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl6
1 files changed, 3 insertions, 3 deletions
diff --git a/prosodyctl b/prosodyctl
index 45b5604a..0817db35 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -227,9 +227,9 @@ for hostname, config in pairs(config.getconfig()) do
hosts[hostname] = make_host(hostname);
end
-require "core.modulemanager"
+local modulemanager = require "core.modulemanager"
-require "util.prosodyctl"
+local prosodyctl = require "util.prosodyctl"
require "socket"
-----------------------
@@ -509,7 +509,7 @@ function commands.about(arg)
return 1;
end
- require "util.array";
+ local array = require "util.array";
local keys = require "util.iterators".keys;
print("Prosody "..(prosody.version or "(unknown version)"));