aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ejabberd2prosody.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-02-03 15:52:27 +0100
committerKim Alvefur <zash@zash.se>2013-02-03 15:52:27 +0100
commit1929113b7830954ae60ad49934b3c16bf746a9ba (patch)
treea1d3fc24abd3048cb23d45b860640a83baa8c261 /tools/ejabberd2prosody.lua
parent0f2d3d7139c741b6bd8714048694ee16a9b11c91 (diff)
parent5cfdac70c61ae6562f72868ef7b55129b166aa80 (diff)
downloadprosody-1929113b7830954ae60ad49934b3c16bf746a9ba.tar.gz
prosody-1929113b7830954ae60ad49934b3c16bf746a9ba.zip
Merge 0.9->trunk
Diffstat (limited to 'tools/ejabberd2prosody.lua')
-rwxr-xr-xtools/ejabberd2prosody.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/ejabberd2prosody.lua b/tools/ejabberd2prosody.lua
index 656f0824..c11e41d9 100755
--- a/tools/ejabberd2prosody.lua
+++ b/tools/ejabberd2prosody.lua
@@ -11,17 +11,17 @@
package.path = package.path ..";../?.lua";
-if arg[0]:match("^./") then
- package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua");
+if arg[0]:match("[/\\]") then
+ package.path = package.path .. ";"..arg[0]:gsub("[^/\\]*$", "?.lua");
end
local erlparse = require "erlparse";
prosody = {};
+package.loaded["util.logger"] = {init = function() return function() end; end}
local serialize = require "util.serialization".serialize;
local st = require "util.stanza";
-package.loaded["util.logger"] = {init = function() return function() end; end}
local dm = require "util.datamanager"
dm.set_data_path("data");