Comparison

tools/ejabberd2prosody.lua @ 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 4380:9f1c61805817
child 5309:2da869d95271
comparison
equal deleted inserted replaced
5022:776a57ca0d84 5023:dcc8e789df36
13 13
14 if arg[0]:match("^./") then 14 if arg[0]:match("^./") then
15 package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua"); 15 package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua");
16 end 16 end
17 17
18 require "erlparse"; 18 local erlparse = require "erlparse";
19 19
20 prosody = {}; 20 prosody = {};
21 21
22 local serialize = require "util.serialization".serialize; 22 local serialize = require "util.serialization".serialize;
23 local st = require "util.stanza"; 23 local st = require "util.stanza";