Comparison

tools/ejabberd2prosody.lua @ 2693:e60494fbf23f

ejabberd2prosody: Don't print passwords of imported accounts
author Matthew Wild <mwild1@gmail.com>
date Sun, 21 Feb 2010 16:57:06 +0000
parent 1784:b2bfd3b93da6
child 2923:b7049746bd29
comparison
equal deleted inserted replaced
2690:542d633e0280 2693:e60494fbf23f
47 local ret, err = dm.store(node, host, "vcard", st.preserialize(stanza)); 47 local ret, err = dm.store(node, host, "vcard", st.preserialize(stanza));
48 print("["..(err or "success").."] vCard: "..node.."@"..host); 48 print("["..(err or "success").."] vCard: "..node.."@"..host);
49 end 49 end
50 function password(node, host, password) 50 function password(node, host, password)
51 local ret, err = dm.store(node, host, "accounts", {password = password}); 51 local ret, err = dm.store(node, host, "accounts", {password = password});
52 print("["..(err or "success").."] accounts: "..node.."@"..host.." = "..password); 52 print("["..(err or "success").."] accounts: "..node.."@"..host);
53 end 53 end
54 function roster(node, host, jid, item) 54 function roster(node, host, jid, item)
55 local roster = dm.load(node, host, "roster") or {}; 55 local roster = dm.load(node, host, "roster") or {};
56 roster[jid] = item; 56 roster[jid] = item;
57 local ret, err = dm.store(node, host, "roster", roster); 57 local ret, err = dm.store(node, host, "roster", roster);