Software /
code /
prosody
Diff
prosodyctl @ 5023:dcc8e789df36
mod_admin_telnet, prosody, prosodyctl, ejabberd2prosody: Don't depend on modules setting globals
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Sat, 09 Jun 2012 02:27:44 +0200 |
parent | 4881:eafed1728be3 |
child | 5024:d25e1b9332cc |
line wrap: on
line diff
--- a/prosodyctl Sat Jun 09 01:18:21 2012 +0200 +++ b/prosodyctl Sat Jun 09 02:27:44 2012 +0200 @@ -227,9 +227,9 @@ 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 @@ return 1; end - require "util.array"; + local array = require "util.array"; local keys = require "util.iterators".keys; print("Prosody "..(prosody.version or "(unknown version)"));