aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ejabberd2prosody.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-12-04 23:40:15 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-12-04 23:40:15 +0500
commit83fc91cb1069a562620d2220c2b0c0afdc609a22 (patch)
treed2fd881dee0e175e6ff4ef70c1e1df24574b230b /tools/ejabberd2prosody.lua
parentc76c4fdc1ec813910dc1c7a87b53af064cd2a4ee (diff)
downloadprosody-83fc91cb1069a562620d2220c2b0c0afdc609a22.tar.gz
prosody-83fc91cb1069a562620d2220c2b0c0afdc609a22.zip
Changed the ejabberd import script to use util.serialization
Diffstat (limited to 'tools/ejabberd2prosody.lua')
-rwxr-xr-xtools/ejabberd2prosody.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/ejabberd2prosody.lua b/tools/ejabberd2prosody.lua
index 33f60c99..e66b8513 100755
--- a/tools/ejabberd2prosody.lua
+++ b/tools/ejabberd2prosody.lua
@@ -21,9 +21,9 @@
require "erlparse";
-require "serialize";
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}
local dm = require "util.datamanager"
@@ -74,7 +74,7 @@ function build_stanza(tuple, stanza)
elseif tuple[1] == "xmlcdata" then
stanza:text(tuple[2]);
else
- error("unknown element type: "..serialize.serialize(tuple));
+ error("unknown element type: "..serialize(tuple));
end
end
function build_time(tuple)
@@ -190,7 +190,7 @@ for item in erlparse.parseFile(arg) do
count = count + 1;
local name = item[1];
t[name] = (t[name] or 0) + 1;
- --print(count, serialize.serialize(item));
+ --print(count, serialize(item));
if filters[name] then filters[name](item); end
end
---print(serialize.serialize(t));
+--print(serialize(t));