projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
95c64b7
)
Merge with 0.5
author
Matthew Wild
<mwild1@gmail.com>
Thu, 20 Aug 2009 15:30:32 +0000
(16:30 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Thu, 20 Aug 2009 15:30:32 +0000
(16:30 +0100)
tools/ejabberd2prosody.lua
patch
|
blob
|
history
diff --git
a/tools/ejabberd2prosody.lua
b/tools/ejabberd2prosody.lua
index 4fef3f3abbf434e4eac798d8ee6650cb6f7202b1..c18056c127a4dd2e920633c1f883604df36f16e7 100755
(executable)
--- a/
tools/ejabberd2prosody.lua
+++ b/
tools/ejabberd2prosody.lua
@@
-9,9
+9,14
@@
+package.path = package.path ..";../?.lua";
+
+if arg[0]:match("^./") then
+ package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua");
+end
+
require "erlparse";
-package.path = package.path ..";../?.lua";
local serialize = require "util.serialization".serialize;
local st = require "util.stanza";
package.loaded["util.logger"] = {init = function() return function() end; end}