Comparison

tools/ejabberdsql2prosody.lua @ 2688:95d665f20c71

ejabberdsql2prosody: Don't print password of imported accounts (thanks azerttyu)
author Matthew Wild <mwild1@gmail.com>
date Sun, 21 Feb 2010 16:42:26 +0000
parent 1649:a6698ab04039
child 2923:b7049746bd29
comparison
equal deleted inserted replaced
2683:9e8000c84fef 2688:95d665f20c71
252 --print(serialize(t)); 252 --print(serialize(t));
253 253
254 for i, row in ipairs(t["users"] or NULL) do 254 for i, row in ipairs(t["users"] or NULL) do
255 local node, password = row.username, row.password; 255 local node, password = row.username, row.password;
256 local ret, err = dm.store(node, host, "accounts", {password = password}); 256 local ret, err = dm.store(node, host, "accounts", {password = password});
257 print("["..(err or "success").."] accounts: "..node.."@"..host.." = "..password); 257 print("["..(err or "success").."] accounts: "..node.."@"..host);
258 end 258 end
259 259
260 function roster(node, host, jid, item) 260 function roster(node, host, jid, item)
261 local roster = dm.load(node, host, "roster") or {}; 261 local roster = dm.load(node, host, "roster") or {};
262 roster[jid] = item; 262 roster[jid] = item;