projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xmlhandlers: Reject XML comments, processing instructions and (if supported by LuaExp...
[prosody.git]
/
tools
/
ejabberd2prosody.lua
diff --git
a/tools/ejabberd2prosody.lua
b/tools/ejabberd2prosody.lua
index 7b19260d749fc2cc74fc0e9bc8eb2bda401a68a6..a231abd8c0505b7e1b5dae196cd7741e67fd5140 100755
(executable)
--- a/
tools/ejabberd2prosody.lua
+++ b/
tools/ejabberd2prosody.lua
@@
-1,7
+1,7
@@
#!/usr/bin/env lua
-- Prosody IM
#!/usr/bin/env lua
-- Prosody IM
--- Copyright (C) 2008-20
09
Matthew Wild
--- Copyright (C) 2008-20
09
Waqas Hussain
+-- Copyright (C) 2008-20
10
Matthew Wild
+-- Copyright (C) 2008-20
10
Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
@@
-17,6
+17,8
@@
end
require "erlparse";
require "erlparse";
+prosody = {};
+
local serialize = require "util.serialization".serialize;
local st = require "util.stanza";
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}
@@
-49,7
+51,7
@@
function vcard(node, host, stanza)
end
function password(node, host, password)
local ret, err = dm.store(node, host, "accounts", {password = password});
end
function password(node, host, password)
local ret, err = dm.store(node, host, "accounts", {password = password});
- print("["..(err or "success").."] accounts: "..node.."@"..host
.." = "..password
);
+ print("["..(err or "success").."] accounts: "..node.."@"..host);
end
function roster(node, host, jid, item)
local roster = dm.load(node, host, "roster") or {};
end
function roster(node, host, jid, item)
local roster = dm.load(node, host, "roster") or {};